mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-02 22:10:48 -05:00
.from_string() no longer takes a HS
This commit is contained in:
parent
02e4c18171
commit
4c682143c8
@ -76,7 +76,7 @@ class RoomCreationHandler(BaseHandler):
|
|||||||
|
|
||||||
if room_id:
|
if room_id:
|
||||||
# Ensure room_id is the correct type
|
# Ensure room_id is the correct type
|
||||||
room_id_obj = RoomID.from_string(room_id, self.hs)
|
room_id_obj = RoomID.from_string(room_id)
|
||||||
if not self.hs.is_mine(room_id_obj):
|
if not self.hs.is_mine(room_id_obj):
|
||||||
raise SynapseError(400, "Room id must be local")
|
raise SynapseError(400, "Room id must be local")
|
||||||
|
|
||||||
@ -476,7 +476,7 @@ class RoomMemberHandler(BaseHandler):
|
|||||||
if prev_state and prev_state.membership == Membership.INVITE:
|
if prev_state and prev_state.membership == Membership.INVITE:
|
||||||
room = yield self.store.get_room(room_id)
|
room = yield self.store.get_room(room_id)
|
||||||
inviter = UserID.from_string(
|
inviter = UserID.from_string(
|
||||||
prev_state.sender, self.hs
|
prev_state.sender
|
||||||
)
|
)
|
||||||
|
|
||||||
is_remote_invite_join = not self.hs.is_mine(inviter) and not room
|
is_remote_invite_join = not self.hs.is_mine(inviter) and not room
|
||||||
|
Loading…
Reference in New Issue
Block a user