mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Update syncapi/notifier/notifier.go
Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com>
This commit is contained in:
parent
24ecde445b
commit
e0cdb95eb6
|
|
@ -283,6 +283,9 @@ func (n *Notifier) IsSharedUser(userA, userB string) bool {
|
||||||
var okA, okB bool
|
var okA, okB bool
|
||||||
for _, users := range n.roomIDToJoinedUsers {
|
for _, users := range n.roomIDToJoinedUsers {
|
||||||
okA = users.isIn(userA)
|
okA = users.isIn(userA)
|
||||||
|
if !okA {
|
||||||
|
continue
|
||||||
|
}
|
||||||
okB = users.isIn(userB)
|
okB = users.isIn(userB)
|
||||||
if okA && okB {
|
if okA && okB {
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue