Class MatrixRoomIdUtils
java.lang.Object
io.meeds.chat.service.utils.MatrixRoomIdUtils
Room identifiers come in two shapes. Up to room version 11 a room id is
!<localpart>:<server_name>, and the space rooms this addon created
are stored with the :<server_name> part removed. From room version
12 (MSC4291) the room id is the create event's reference hash,
!<43 URL-safe base64 characters>, with no server part at all, so it
is already complete and is used as is.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisHashRoomId(String roomId) static StringtoFullRoomId(String roomId) static StringtoStoredRoomId(String fullRoomId)
-
Method Details
-
isHashRoomId
- Parameters:
roomId- a room id as stored or as received from Synapse- Returns:
- true when the id is a room version 12 (MSC4291) id, which carries no server part
-
toFullRoomId
-
toStoredRoomId
-