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

Can update posts visibility levels

This commit is contained in:
2019-05-23 18:27:43 +02:00
parent 57cf1d5da1
commit 14b6f17042
5 changed files with 150 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class Post implements LikeElement {
final int groupID;
final int timeSent;
String content;
final PostVisibilityLevel visibilityLevel;
PostVisibilityLevel visibilityLevel;
final PostKind kind;
final int fileSize;
final String fileType;
@ -66,6 +66,8 @@ class Post implements LikeElement {
assert(userLike != null),
assert(access != null);
bool get isGroupPost => groupID != null && groupID > 0;
bool get hasContent => content != null;
bool get hasComments => comments != null;