Use senderTimestampMs instead of messageTimestamp (#348)

* Use senderTimestampMs instead of messageTimestamp

* Add .toNumber(), because senderTimestampMs is Long

* chore: Fix linting

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
Alex
2024-01-19 23:00:12 +07:00
committed by GitHub
parent 16234a24aa
commit 4ff3b329b8

View File

@@ -386,7 +386,7 @@ const processMessage = async(
{
pollUpdateMessageKey: message.key,
vote: voteMsg,
senderTimestampMs: message.messageTimestamp,
senderTimestampMs: (content.pollUpdateMessage.senderTimestampMs! as Long).toNumber(),
}
]
}