fix: message delete not reflecting correctly for others

This commit is contained in:
Adhiraj Singh
2022-01-08 23:01:55 +05:30
parent 127e21b920
commit 5febb86e14

View File

@@ -167,7 +167,10 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
case proto.ProtocolMessage.ProtocolMessageType.REVOKE:
ev.emit('messages.update', [
{
key: protocolMsg.key,
key: {
...message.key,
id: protocolMsg.key!.id
},
update: { message: null, messageStubType: WAMessageStubType.REVOKE, key: message.key }
}
])