Initial commit

This commit is contained in:
Rajeh Taher
2023-12-18 16:31:41 +02:00
committed by GitHub
parent e24947e55a
commit b914a1f52a

View File

@@ -263,6 +263,22 @@ const processMessage = async(
ephemeralSettingTimestamp: toNumber(message.messageTimestamp),
ephemeralExpiration: protocolMsg.ephemeralExpiration || null
})
break
case proto.Message.ProtocolMessage.Type.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE:
const response = protocolMsg.peerDataOperationRequestResponseMessage!
if(response) {
const { peerDataOperationResult } = response
for(const result of peerDataOperationResult!) {
const { placeholderMessageResendResponse: retryResponse } = result
if(retryResponse) {
const webMessageInfo = proto.WebMessageInfo.decode(retryResponse.webMessageInfoBytes!)
ev.emit('messages.update', [
{ key: webMessageInfo.key, update: { message: webMessageInfo.message } }
])
}
}
}
break
}
} else if(content?.reactionMessage) {
@@ -387,4 +403,4 @@ const processMessage = async(
}
}
export default processMessage
export default processMessage