Merge pull request #756 from pangeachat/fix-direct-chat-constants-value-to-match-bot-config

fix direct chat constants value to match bot config
pull/1423/head
ggurdin 1 year ago committed by GitHub
commit 3ab9d184d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,5 +1,5 @@
class BotMode {
static const direct = "direct";
static const directChat = "direct_chat";
static const discussion = "discussion";
static const custom = "custom";
static const storyGame = "story_game";

@ -56,7 +56,7 @@ extension RoomInformationRoomExtension on Room {
);
}
Future<bool> get _isBotDM async => botOptions?.mode == BotMode.direct;
Future<bool> get _isBotDM async => botOptions?.mode == BotMode.directChat;
bool get _isLocked {
if (isDirectChat) return false;

Loading…
Cancel
Save