mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 14:24:19 -05:00
Added parse_roomid() helper
This commit is contained in:
parent
e677a3114e
commit
d63f775e06
@ -126,6 +126,11 @@ class BaseHomeServer(object):
|
|||||||
object."""
|
object."""
|
||||||
return UserID.from_string(s, hs=self)
|
return UserID.from_string(s, hs=self)
|
||||||
|
|
||||||
|
def parse_roomid(self, s):
|
||||||
|
"""Parse the string given by 's' as a Room ID and return a RoomID
|
||||||
|
object."""
|
||||||
|
return RoomID.from_string(s, hs=self)
|
||||||
|
|
||||||
def parse_roomalias(self, s):
|
def parse_roomalias(self, s):
|
||||||
"""Parse the string given by 's' as a Room Alias and return a RoomAlias
|
"""Parse the string given by 's' as a Room Alias and return a RoomAlias
|
||||||
object."""
|
object."""
|
||||||
|
Loading…
Reference in New Issue
Block a user