mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 18:04:11 -04:00
Rename the 'do_users_share_a_room' to something slightly less verb-sounding
This commit is contained in:
parent
967b45bc1a
commit
da3e04df8b
4 changed files with 6 additions and 6 deletions
|
@ -155,7 +155,7 @@ class PresenceHandler(BaseHandler):
|
|||
if observer_user == observed_user:
|
||||
defer.returnValue(True)
|
||||
|
||||
if (yield self.store.do_users_share_a_room(
|
||||
if (yield self.store.user_rooms_intersect(
|
||||
[observer_user, observed_user]
|
||||
)):
|
||||
defer.returnValue(True)
|
||||
|
|
|
@ -165,7 +165,7 @@ class RoomMemberStore(SQLBaseStore):
|
|||
defer.returnValue(results)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def do_users_share_a_room(self, user_list):
|
||||
def user_rooms_intersect(self, user_list):
|
||||
""" Checks whether a list of users share a room.
|
||||
"""
|
||||
user_list_clause = " OR ".join(["m.user_id = ?"] * len(user_list))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue