From f885dfbecca123ca7017cde6d653792d22b6bf3f Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 29 Aug 2019 10:49:07 +0200 Subject: [PATCH] [Room] Add isDirectChat boolean getter --- lib/src/Room.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/Room.dart b/lib/src/Room.dart index 7a77783..6de3d2e 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -121,6 +121,9 @@ class Room { return returnUserId; } + /// Wheither this is a direct chat or not + bool get isDirectChat => directChatMatrixID != null; + /// Must be one of [all, mention] String notificationSettings;