mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Can update posts visibility levels
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user