update entity connection status to report it correctly (#257)

This commit is contained in:
Evgeny Poberezkin
2022-02-02 17:01:12 +00:00
committed by GitHub
parent 38424af48e
commit dafdf66ada
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -505,7 +505,7 @@ processAgentMessage user@User {userId, profile} agentConnId agentMessage =
Just connStatus -> do
let conn = (entityConnection acEntity) {connStatus}
withStore $ \st -> updateConnectionStatus st conn connStatus
pure acEntity {entityConnection = conn}
pure $ updateEntityConnStatus acEntity connStatus
Nothing -> pure acEntity
isMember :: MemberId -> GroupInfo -> [GroupMember] -> Bool