ПИДОРАСЫ ЕБАНЫЕ Я ВАШ РОТ НАХУЙ СДЕЛАЮ УДАЛИТИ ГРУПА ПИДАРАСЫ КАКОГА ХУЯ ДЛЯ ИЗМЕНЕНЕЯ СПУФА НАДА ПЕРЕЗАХАДИТЬ ПИТАРАСЫ Я ВАШ РОТ НООБОРОТ

This commit is contained in:
jganenok
2025-11-20 10:05:22 +07:00
parent 15440536b4
commit b8b29b547f
6 changed files with 36 additions and 99 deletions

View File

@@ -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);