chore: lint and re-organize

This commit is contained in:
Rajeh Taher
2025-10-20 00:16:51 +03:00
parent cc3cd17392
commit 29318cf6c2
6 changed files with 34 additions and 40 deletions
+1 -3
View File
@@ -11,7 +11,6 @@ import type {
MessageUserReceipt,
SocketConfig,
WACallEvent,
WACallUpdateType,
WAMessage,
WAMessageKey,
WAPatchName
@@ -1278,9 +1277,9 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
}
const handleCall = async (node: BinaryNode) => {
let status: WACallUpdateType
const { attrs } = node
const [infoChild] = getAllBinaryNodeChildren(node)
const status = getCallStatusFromNode(infoChild!)
if (!infoChild) {
throw new Boom('Missing call info in call node')
@@ -1288,7 +1287,6 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
const callId = infoChild.attrs['call-id']!
const from = infoChild.attrs.from! || infoChild.attrs['call-creator']!
status = getCallStatusFromNode(infoChild)
const call: WACallEvent = {
chatId: attrs.from!,