Skip to main content

is_dm_room

Function is_dm_room 

Source
pub fn is_dm_room(room_id: &str) -> bool
Expand description

Check whether a room ID represents a DM room.

DM room IDs follow the pattern dm-<user_a>-<user_b> where usernames are sorted alphabetically.