core: don't create subscriber profile item update / create in support scope (#6910)

This commit is contained in:
spaced4ndy
2026-04-28 18:08:39 +00:00
committed by GitHub
parent a7d871d683
commit 66064c38f8
2 changed files with 46 additions and 10 deletions
+12 -4
View File
@@ -2631,10 +2631,18 @@ processAgentMessageConn vr user@User {userId} corrId agentConnId agentMessage =
BCCustomer -> customerId == memberId
createProfileUpdatedItem m' (msg, brokerTs) = do
(gInfo', m'', scopeInfo) <- mkGroupChatScope gInfo m'
let ciContent = CIRcvGroupEvent $ RGEMemberProfileUpdated (fromLocalProfile p) p'
cd = CDGroupRcv gInfo' scopeInfo m''
(ci, cInfo) <- saveRcvChatItemNoParse user cd msg brokerTs ciContent
groupMsgToView cInfo ci
let createItem scopeInfo_ m_ = do
let ciContent = CIRcvGroupEvent $ RGEMemberProfileUpdated (fromLocalProfile p) p'
cd = CDGroupRcv gInfo' scopeInfo_ m_
(ci, cInfo) <- saveRcvChatItemNoParse user cd msg brokerTs ciContent
groupMsgToView cInfo ci
case scopeInfo of
Just _ -> createItem scopeInfo m''
Nothing
| useRelays' gInfo' && not (isRelay m'') && memberRole' m'' < GRModerator ->
forM_ (supportChat m'') $ \_ ->
createItem (Just GCSIMemberSupport {groupMember_ = Just m''}) m''
| otherwise -> createItem Nothing m''
xInfoProbe :: ContactOrMember -> Probe -> CM ()
xInfoProbe cgm2 probe = do