Fix last message timestamp in history_sync_conversation table

This commit is contained in:
Tulir Asokan 2022-05-19 11:41:01 +03:00
parent f39fff3285
commit 60496e5976

View file

@ -80,8 +80,8 @@ func (hsq *HistorySyncQuery) NewConversationWithValues(
UserID: userID,
ConversationID: conversationID,
PortalKey: portalKey,
LastMessageTimestamp: time.Unix(int64(lastMessageTimestamp), 0),
MuteEndTime: time.Unix(int64(muteEndTime), 0),
LastMessageTimestamp: time.Unix(int64(lastMessageTimestamp), 0).UTC(),
MuteEndTime: time.Unix(int64(muteEndTime), 0).UTC(),
Archived: archived,
Pinned: pinned,
DisappearingMode: disappearingMode,