fix direct chat constants value to match bot config

This commit is contained in:
WilsonLe 2024-10-17 21:35:45 +11:00
parent 704e3bf7d1
commit 7a4d1a386e
2 changed files with 2 additions and 2 deletions

View file

@ -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";

View file

@ -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;