mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-25 20:42:13 +00:00
core: return user unread counts on ListUsers command (#1763)
* core: return user unread counts on ListUsers command * split * tests * refactor * viewUserInfo * refactor * remove omit nothing * corrections * fix Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
@@ -283,9 +283,7 @@ processChatCommand = \case
|
||||
setActive ActiveNone
|
||||
atomically . writeTVar u $ Just user
|
||||
pure $ CRActiveUser user
|
||||
ListUsers -> do
|
||||
users <- withStore' getUsers
|
||||
pure $ CRUsersList users
|
||||
ListUsers -> CRUsersList <$> withStore' getUsersInfo
|
||||
APISetActiveUser userId -> do
|
||||
u <- asks currentUser
|
||||
user <- withStore $ \db -> getSetActiveUser db userId
|
||||
|
||||
Reference in New Issue
Block a user