This commit is contained in:
Evgeny @ SimpleX Chat
2026-05-31 20:42:33 +00:00
parent 346518d334
commit 1d1fcf9ebd
+3 -3
View File
@@ -4884,10 +4884,10 @@ runRelayGroupLinkChecks user = do
sentWebUrl <- withStore' $ \db -> getRelaySentWebUrl db gInfo
when (currentWebUrl /= sentWebUrl) $ do
owners <- withStore' $ \db -> getGroupOwners db vr user gInfo
let capableOwners = filter (\m -> memberCurrent m && maxVersion (memberChatVRange m) >= relayWebCapVersion) owners
unless (null capableOwners) $
let capableOwners = filter (\m -> memberCurrent m && m `supportsVersion` relayWebCapVersion) owners
unless (null capableOwners) $ do
void $ sendGroupMessage' user gInfo capableOwners (XGrpRelayCap RelayCapabilities {baseWebUrl = currentWebUrl})
withStore' $ \db -> updateRelaySentWebUrl db gInfo currentWebUrl
withStore' $ \db -> updateRelaySentWebUrl db gInfo currentWebUrl
checkRelayInactiveGroups = do
vr <- chatVersionRange
ttl <- asks (relayInactiveTTL . config)