chore: Update Matrix SDK and refactor
This commit is contained in:
parent
ea874b3e43
commit
d343c71703
17 changed files with 91 additions and 50 deletions
|
|
@ -134,15 +134,6 @@ class ChatController extends State<Chat> {
|
|||
|
||||
bool showEmojiPicker = false;
|
||||
|
||||
bool get isLeftDMRoom {
|
||||
final room = this.room;
|
||||
final userId = room?.directChatMatrixID;
|
||||
if (room == null || userId == null) return false;
|
||||
return room.isDirectChat &&
|
||||
room.unsafeGetUserFromMemoryOrFallback(userId).membership ==
|
||||
Membership.leave;
|
||||
}
|
||||
|
||||
void recreateChat() async {
|
||||
final room = this.room;
|
||||
final userId = room?.directChatMatrixID;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue