Skip to content

Commit

Permalink
Use senderTimestampMs instead of messageTimestamp (#348)
Browse files Browse the repository at this point in the history
* Use senderTimestampMs instead of messageTimestamp

* Add .toNumber(), because senderTimestampMs is Long

* chore: Fix linting

---------

Co-authored-by: Rajeh Taher <[email protected]>
  • Loading branch information
allburov and PurpShell authored Jan 19, 2024
1 parent 16234a2 commit 4ff3b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/process-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ const processMessage = async(
{
pollUpdateMessageKey: message.key,
vote: voteMsg,
senderTimestampMs: message.messageTimestamp,
senderTimestampMs: (content.pollUpdateMessage.senderTimestampMs! as Long).toNumber(),
}
]
}
Expand Down

0 comments on commit 4ff3b32

Please sign in to comment.