mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can delete conversation messages
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:comunic/helpers/database/database_contract.dart';
|
||||
import 'package:comunic/models/cache_model.dart';
|
||||
import 'package:comunic/utils/account_utils.dart' as account;
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
/// Single conversation message
|
||||
@ -33,6 +34,8 @@ class ConversationMessage extends CacheModel implements Comparable {
|
||||
|
||||
bool get hasImage => imageURL != null && imageURL != "null";
|
||||
|
||||
bool get isOwner => account.userID() == userID;
|
||||
|
||||
@override
|
||||
int compareTo(other) {
|
||||
return id.compareTo(other.id);
|
||||
|
Reference in New Issue
Block a user