мультиаккаунгтинг(багованный, но он есть), избранное коректно отображается, убрана кнопка ответить в канале, добавлена поддержка видеокружков и голосовых сообщений

This commit is contained in:
needle10
2025-11-18 23:13:55 +03:00
parent e5b97208ad
commit 2d11f1cba2
14 changed files with 1803 additions and 218 deletions

View File

@@ -26,7 +26,7 @@ class GroupHeader extends StatelessWidget {
final colors = Theme.of(context).colorScheme;
final onlineCount = chat.onlineParticipantsCount;
final totalCount = chat.participantsCount;
final totalCount = chat.participantsCount ?? chat.participantIds.length;
return GestureDetector(
onTap: () => _showGroupManagementPanel(context),
@@ -38,7 +38,6 @@ class GroupHeader extends StatelessWidget {
),
child: Row(
children: [
GroupAvatars(
chat: chat,
contacts: contacts,
@@ -49,7 +48,6 @@ class GroupHeader extends StatelessWidget {
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -67,7 +65,6 @@ class GroupHeader extends StatelessWidget {
const SizedBox(height: 2),
Row(
children: [
if (onlineCount > 0) ...[
Container(
width: 8,
@@ -89,7 +86,6 @@ class GroupHeader extends StatelessWidget {
const SizedBox(width: 8),
],
Text(
'$totalCount участников',
style: TextStyle(