1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Delete conversation => leave conversation

This commit is contained in:
2021-03-13 12:07:16 +01:00
parent 4614f3ae2e
commit ed9f5e396c
3 changed files with 22 additions and 36 deletions

View File

@ -50,6 +50,9 @@ class Conversation extends SerializableElement<Conversation> {
/// Check out whether current user of the application is an admin
bool get isAdmin => membership.isAdmin;
/// Check if current user is the last admin of the conversation
bool get isLastAdmin => isAdmin && adminsID.length == 1;
/// Check it current user is following the conversation or not
bool get following => membership.following;