getDefaultRoomName method
Implementation
String getDefaultRoomName() {
if (roomState.roomName.value != null && roomState.roomName.value!.isNotEmpty) {
return roomState.roomName.value!;
} else if (userState.selfInfo.name.value == null || userState.selfInfo.name.value!.isEmpty) {
return userState.selfInfo.userId;
} else {
return userState.selfInfo.name.value!;
}
}