core: return member records from apiGetReactionMembers (#5270)

This commit is contained in:
spaced4ndy
2024-11-28 13:49:20 +04:00
committed by GitHub
parent 13efdf2595
commit 68be4b4ba5
3 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -1081,7 +1081,7 @@ processChatCommand' vr = \case
APIGetReactionMembers userId groupId itemId reaction -> withUserId userId $ \user -> do
memberReactions <- withStore $ \db -> do
CChatItem _ ChatItem {meta = CIMeta {itemSharedMsgId = Just itemSharedMId}} <- getGroupChatItem db user groupId itemId
liftIO $ getReactionMembers db groupId itemSharedMId reaction
liftIO $ getReactionMembers db vr user groupId itemSharedMId reaction
pure $ CRReactionMembers user memberReactions
APIPlanForwardChatItems (ChatRef fromCType fromChatId) itemIds -> withUser $ \user -> case fromCType of
CTDirect -> planForward user . snd =<< getCommandDirectChatItems user fromChatId itemIds