ПИДОРАСЫ ЕБАНЫЕ Я ВАШ РОТ НАХУЙ СДЕЛАЮ УДАЛИТИ ГРУПА ПИДАРАСЫ КАКОГА ХУЯ ДЛЯ ИЗМЕНЕНЕЯ СПУФА НАДА ПЕРЕЗАХАДИТЬ ПИТАРАСЫ Я ВАШ РОТ НООБОРОТ
This commit is contained in:
@@ -24,19 +24,13 @@ class Message {
|
||||
});
|
||||
|
||||
factory Message.fromJson(Map<String, dynamic> json) {
|
||||
|
||||
|
||||
|
||||
|
||||
int senderId;
|
||||
if (json['sender'] is int) {
|
||||
senderId = json['sender'];
|
||||
} else {
|
||||
|
||||
senderId = 0;
|
||||
}
|
||||
|
||||
|
||||
int time;
|
||||
if (json['time'] is int) {
|
||||
time = json['time'];
|
||||
@@ -45,7 +39,6 @@ class Message {
|
||||
}
|
||||
|
||||
return Message(
|
||||
|
||||
id:
|
||||
json['id']?.toString() ??
|
||||
'local_${DateTime.now().millisecondsSinceEpoch}',
|
||||
@@ -96,11 +89,6 @@ class Message {
|
||||
bool get isReply => link != null && link!['type'] == 'REPLY';
|
||||
bool get isForwarded => link != null && link!['type'] == 'FORWARD';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool canEdit(int currentUserId) {
|
||||
if (isDeleted) return false;
|
||||
if (senderId != currentUserId) return false;
|
||||
@@ -108,7 +96,6 @@ class Message {
|
||||
return false; // Нельзя редактировать сообщения с вложениями
|
||||
}
|
||||
|
||||
|
||||
final now = DateTime.now().millisecondsSinceEpoch;
|
||||
final messageTime = time;
|
||||
final hoursSinceCreation = (now - messageTime) / (1000 * 60 * 60);
|
||||
|
||||
Reference in New Issue
Block a user