null expiration for eph messages

This commit is contained in:
Adhiraj Singh
2021-09-27 12:49:12 +05:30
parent 12105a17ee
commit 9907aedcfa

View File

@@ -120,7 +120,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
break
case proto.ProtocolMessage.ProtocolMessageType.EPHEMERAL_SETTING:
chatUpdate.ephemeralSettingTimestamp = toNumber(message.messageTimestamp)
chatUpdate.ephemeralExpiration = protocolMsg.ephemeralExpiration
chatUpdate.ephemeralExpiration = protocolMsg.ephemeralExpiration || null
break
}
} else if(message.messageStubType) {