messages-recv: remove outdated case for privacy_token

This commit is contained in:
Rajeh Taher
2025-11-21 17:07:48 +02:00
parent 9720ff49ca
commit 23f1268918
-15
View File
@@ -709,21 +709,6 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
const from = jidNormalizedUser(node.attrs.from)
switch (nodeType) {
case 'privacy_token':
const tokenList = getBinaryNodeChildren(child, 'token')
for (const { attrs, content } of tokenList) {
const jid = attrs.jid
ev.emit('chats.update', [
{
id: jid,
tcToken: content as Buffer
}
])
logger.debug({ jid }, 'got privacy token update')
}
break
case 'newsletter':
await handleNewsletterNotification(node)
break