core: add timestamp to call invitation (#700)

This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2022-05-27 09:30:01 +04:00
1 parent 9e83b54b85
commit a403f2051a
4 files changed
+9 -5

No files matched your search

-3
View File
@@ -2640,9 +2640,6 @@ getChatPreviews st user withPCC =
ts (AChat _ Chat {chatInfo, chatItems = ci : _}) = max (chatItemTs ci) (chatInfoUpdatedAt chatInfo)
ts (AChat _ Chat {chatInfo}) = chatInfoUpdatedAt chatInfo
chatItemTs :: CChatItem d -> UTCTime
chatItemTs (CChatItem _ ChatItem {meta = CIMeta {itemTs}}) = itemTs
getDirectChatPreviews_ :: DB.Connection -> User -> IO [AChat]
getDirectChatPreviews_ db User {userId} = do
tz <- getCurrentTimeZone