mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Tweak IsSharedUser some more
This commit is contained in:
parent
e6f72a8870
commit
3c73ec6b9f
|
|
@ -259,9 +259,10 @@ func (n *Notifier) SharedUsers(userID string) (sharedUsers []string) {
|
|||
}
|
||||
|
||||
func (n *Notifier) IsSharedUser(userA, userB string) bool {
|
||||
var okA, okB bool
|
||||
for _, users := range n.roomIDToJoinedUsers {
|
||||
_, okA := users[userA]
|
||||
_, okB := users[userB]
|
||||
_, okA = users[userA]
|
||||
_, okB = users[userB]
|
||||
if okA && okB {
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue