ну немножечко так оптимизировал чутка, добавил раздел 'производительность' в насторйки, немного сделал чуточку в кастомизации, пару мелочей переделал

This commit is contained in:
Jganenok
2026-05-16 21:10:21 +07:00
parent 4928acc0f9
commit fc7a225b8a
35 changed files with 1818 additions and 944 deletions
+5 -2
View File
@@ -29,6 +29,7 @@ class CachedChat {
final int? lastMsgId;
final int? lastMsgTime;
final String? lastMsgText;
final String? lastMsgTextOneLine;
final int? lastMsgSenderId;
final int unreadCount;
final int lastEventTime;
@@ -40,7 +41,7 @@ class CachedChat {
final Map<int, int> participants;
final Set<String> options;
const CachedChat({
CachedChat({
required this.id,
required this.accountId,
required this.type,
@@ -59,7 +60,9 @@ class CachedChat {
required this.seenTime,
required this.participants,
this.options = const {},
});
}) : lastMsgTextOneLine = lastMsgText != null && lastMsgText.contains('\n')
? lastMsgText.replaceAll('\n', ' ')
: lastMsgText;
bool get isOfficial => options.contains('OFFICIAL');