messages-recv: remove outdated case for privacy_token
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user