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

Can update post content

This commit is contained in:
2019-05-19 17:42:09 +02:00
parent 1fbe59c83c
commit 0bf85b478a
3 changed files with 50 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class Post implements LikeElement {
final int userPageID;
final int groupID;
final int timeSent;
final String content;
String content;
final PostVisibilityLevel visibilityLevel;
final PostKind kind;
final int fileSize;
@ -70,6 +70,8 @@ class Post implements LikeElement {
bool get hasComments => comments != null;
bool get canUpdate => access == UserAccessLevels.FULL;
bool get canDelete =>
access == UserAccessLevels.FULL ||
access == UserAccessLevels.INTERMEDIATE;