mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Add multilingual localization
This commit is contained in:
@@ -267,6 +267,7 @@ class _MessagesTabState extends State<MessagesTab> {
|
||||
/// Show recipient selector bottom sheet
|
||||
void _showRecipientSelector() {
|
||||
final contactsProvider = context.read<ContactsProvider>();
|
||||
final messagesProvider = context.read<MessagesProvider>();
|
||||
|
||||
// Filter contacts by type
|
||||
final contacts = contactsProvider.contacts
|
||||
@@ -287,6 +288,13 @@ class _MessagesTabState extends State<MessagesTab> {
|
||||
contacts: contacts,
|
||||
rooms: rooms,
|
||||
channels: channels,
|
||||
unreadCount: messagesProvider.unreadCount,
|
||||
unreadCountsByPublicKey: {
|
||||
for (final contact in [...contacts, ...rooms, ...channels])
|
||||
contact.publicKeyHex: messagesProvider.getUnreadCountForDestination(
|
||||
contact,
|
||||
),
|
||||
},
|
||||
currentDestinationType: _destinationType,
|
||||
currentRecipientPublicKey: _selectedRecipient?.publicKeyHex,
|
||||
onSelect: _onRecipientSelected,
|
||||
|
||||
Reference in New Issue
Block a user