Merge branch 'dev' into ez_image_urls

This commit is contained in:
zjs81 authored and GitHub committed 2026-08-25 13:47:49 -07:00
commit c8bd1edf0f
48 files changed
+485 -268

No files matched your search

+28 -11
View File
@@ -1,6 +1,6 @@
# Privacy Policy for MeshCore Open # Privacy Policy for MeshCore Open
**Last Updated:** January 11, 2026 **Last Updated:** August 23, 2026
## Introduction ## Introduction
@@ -11,16 +11,17 @@ MeshCore Open ("the App") is an open-source Flutter application for communicatin
### Data We Do NOT Collect ### Data We Do NOT Collect
MeshCore Open does **not**: MeshCore Open does **not**:
- Collect personal information - Collect personal information for the developer
- Send data to external servers (except map tile requests)
- Track your usage or behavior - Track your usage or behavior
- Use analytics services - Use analytics services
- Require account creation - Require account creation
- Share any data with third parties - Sell personal information
The App does make limited requests to third-party services when you use features that require internet access, as described below.
### Data Stored Locally on Your Device ### Data Stored Locally on Your Device
The App stores the following data **locally on your device only**: The App stores the following data **locally on your device**:
- **Messages**: Chat messages sent and received through the mesh network - **Messages**: Chat messages sent and received through the mesh network
- **Contacts**: Names and identifiers of mesh network contacts - **Contacts**: Names and identifiers of mesh network contacts
@@ -30,7 +31,7 @@ The App stores the following data **locally on your device only**:
- **Debug Logs**: Optional BLE and app debug logs (if enabled by user) - **Debug Logs**: Optional BLE and app debug logs (if enabled by user)
- **Cached Map Tiles**: Offline map data for the mapping feature - **Cached Map Tiles**: Offline map data for the mapping feature
All locally stored data remains on your device and is never transmitted to us or any third party. This locally stored data is not transmitted to the MeshCore Open developer. Some features may send specific data to third-party services as described in the Third-Party Services section.
## Permissions ## Permissions
@@ -45,12 +46,12 @@ These permissions are used solely to discover and communicate with MeshCore hard
### Location Permission ### Location Permission
- **ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION** - **ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION**
Required by Android for BLE scanning on Android 11 and below. The App does not track or store your location. Location data may be optionally shared over the mesh network if you choose to enable location sharing features. Required by Android for BLE scanning on Android 11 and below. MeshCore Open does not use the phone's GPS to determine your location. Location data shown in the App comes from MeshCore devices and mesh advertisements. Location data may also be optionally shared over the mesh network if you choose to enable location sharing features.
### Internet Permission ### Internet Permission
- **INTERNET** - **INTERNET**
Used only for downloading map tiles from OpenStreetMap tile servers when using the map feature. No personal data is transmitted. Used for features that access third-party internet services, including map tiles, Line-of-Sight elevation lookups, optional model downloads, and optional GIF search.
### Notification Permission ### Notification Permission
- **POST_NOTIFICATIONS** (Android 13+) - **POST_NOTIFICATIONS** (Android 13+)
@@ -65,7 +66,23 @@ Used to maintain BLE connection with your MeshCore device while the app is in th
## Third-Party Services ## Third-Party Services
### Map Tiles ### Map Tiles
The App uses OpenStreetMap tile servers to display maps. When viewing maps, your device's IP address may be visible to the tile server. No other data is shared. See [OpenStreetMap's Privacy Policy](https://wiki.osmfoundation.org/wiki/Privacy_Policy) for more information. The App uses OpenStreetMap and, when selected in settings, Stadia Maps tile servers to display maps. Map tile requests include tile coordinates that identify the geographic area being viewed, and your device's IP address may be visible to the tile provider.
See [OpenStreetMap's Privacy Policy](https://wiki.osmfoundation.org/wiki/Privacy_Policy) and [Stadia Maps' Privacy Policy](https://stadiamaps.com/privacy/) for more information.
### Line-of-Sight Elevation Lookups (Open-Meteo)
When you use the Line-of-Sight (LOS) analysis feature, the App sends latitude and longitude coordinates for points along the selected radio path to the Open-Meteo Elevation API. These coordinates come from MeshCore node positions or locations selected in the map, not from the phone's GPS.
Open-Meteo uses these coordinates to return terrain elevation data needed for the LOS calculation. The request also exposes your device's IP address to Open-Meteo as part of normal internet communication.
LOS elevation lookups are only made when the LOS feature is used. See [Open-Meteo's Terms and Privacy information](https://open-meteo.com/en/terms) for more information.
### Model Downloads (Hugging Face)
The App can download optional translation models and the optional neural image-codec model bundle from Hugging Face when you choose to install or update those models in Settings.
When a model download is requested, the App sends standard HTTP requests for the selected model files to `huggingface.co`. Your device's IP address is visible to Hugging Face as part of normal internet communication. The App does not upload your messages, contacts, mesh location data, or other locally stored content to Hugging Face as part of these model downloads.
Model-download requests are only made when you choose to download or update a model. See [Hugging Face's Privacy Policy](https://huggingface.co/privacy) for more information.
### GIF Search (Giphy) ### GIF Search (Giphy)
The App includes a GIF picker feature powered by Giphy. When you use the GIF search feature: The App includes a GIF picker feature powered by Giphy. When you use the GIF search feature:
@@ -81,7 +98,7 @@ Messages sent through the MeshCore mesh network are transmitted over radio frequ
## Data Security ## Data Security
All data is stored locally on your device using standard Flutter/Android storage mechanisms. The App does not implement additional encryption for locally stored data beyond what the operating system provides. All data stored locally on your device uses standard Flutter/Android storage mechanisms. The App does not implement additional encryption for locally stored data beyond what the operating system provides.
## Children's Privacy ## Children's Privacy
@@ -101,4 +118,4 @@ If you have questions about this Privacy Policy or the App's privacy practices,
--- ---
**Summary**: MeshCore Open is a privacy-respecting app that stores all data locally on your device. We do not collect, track, or share your personal information. **Summary**: MeshCore Open does not use the phone's GPS for location, does not include analytics, and does not collect personal information for the developer. Some optional features communicate with third-party services, including map tile providers, Open-Meteo for LOS elevation lookups, Hugging Face for model downloads, and Giphy for GIF search.
+34 -17
View File
@@ -456,6 +456,13 @@ class MeshCoreConnector extends ChangeNotifier {
); );
} }
Contact? getContactByPubKeyHex(String contactPubKeyHex) {
return _contacts.cast<Contact?>().firstWhere(
(c) => c?.publicKeyHex == contactPubKeyHex,
orElse: () => null,
);
}
List<Contact> get allContacts => List.unmodifiable([ List<Contact> get allContacts => List.unmodifiable([
..._contacts, ..._contacts,
..._discoveredContacts.where( ..._discoveredContacts.where(
@@ -3183,9 +3190,15 @@ class MeshCoreConnector extends ChangeNotifier {
// Check if this is a reaction - apply locally with pending status and route through retry service // Check if this is a reaction - apply locally with pending status and route through retry service
final reactionInfo = ReactionHelper.parseReaction(text); final reactionInfo = ReactionHelper.parseReaction(text);
if (reactionInfo != null) { if (reactionInfo != null) {
appLogger.info('Sending reaction: ${reactionInfo.identifier()}');
_conversations.putIfAbsent(contact.publicKeyHex, () => []); _conversations.putIfAbsent(contact.publicKeyHex, () => []);
final messages = _conversations[contact.publicKeyHex]!; final messages = _conversations[contact.publicKeyHex]!;
// No check for duplicates. If you want to do it again to resend, you can.
final String reactionID = reactionInfo.identifier();
_processedContactReactions.putIfAbsent(contact.publicKeyHex, () => {});
_processedContactReactions[contact.publicKeyHex]!.add(reactionID);
// Apply reaction locally with pending status // Apply reaction locally with pending status
_processOutgoingContactReaction(messages, reactionInfo, contact); _processOutgoingContactReaction(messages, reactionInfo, contact);
_setReactionStatus( _setReactionStatus(
@@ -3227,7 +3240,7 @@ class MeshCoreConnector extends ChangeNotifier {
translatedLanguageCode: translatedLanguageCode, translatedLanguageCode: translatedLanguageCode,
translationModelId: translationModelId, translationModelId: translationModelId,
); );
_addMessage(contact.publicKeyHex, message); _addMessage(contact.publicKeyHex, message); // recipient as "sender"
notifyListeners(); notifyListeners();
final outboundText = prepareContactOutboundText(contact, text); final outboundText = prepareContactOutboundText(contact, text);
await sendFrame(buildSendTextMsgFrame(contact.publicKey, outboundText)); await sendFrame(buildSendTextMsgFrame(contact.publicKey, outboundText));
@@ -3564,11 +3577,12 @@ class MeshCoreConnector extends ChangeNotifier {
// Check if this is a reaction - if so, process it immediately instead of adding as a message // Check if this is a reaction - if so, process it immediately instead of adding as a message
final reactionInfo = ReactionHelper.parseReaction(text); final reactionInfo = ReactionHelper.parseReaction(text);
if (reactionInfo != null) { if (reactionInfo != null) {
reactionInfo.senderName = selfName;
// Check if we've already processed this reaction // Check if we've already processed this reaction
_processedChannelReactions.putIfAbsent(channel.index, () => {}); _processedChannelReactions.putIfAbsent(channel.index, () => {});
final reactionIdentifier = final reactionIdentifier = reactionInfo.identifier();
'${reactionInfo.targetHash}_${reactionInfo.emoji}';
// Maybe we should allow resending. Recipients can drop duplicates.
if (_processedChannelReactions[channel.index]!.contains( if (_processedChannelReactions[channel.index]!.contains(
reactionIdentifier, reactionIdentifier,
)) { )) {
@@ -3581,6 +3595,7 @@ class MeshCoreConnector extends ChangeNotifier {
final messages = _channelMessages[channel.index]!; final messages = _channelMessages[channel.index]!;
// Process reaction locally to update the UI immediately // Process reaction locally to update the UI immediately
appLogger.info('Adding sent channel reaction, id: $reactionIdentifier');
_processReaction(messages, reactionInfo); _processReaction(messages, reactionInfo);
await _channelMessageStore.saveChannelMessages(channel.index, messages); await _channelMessageStore.saveChannelMessages(channel.index, messages);
@@ -6254,15 +6269,23 @@ class MeshCoreConnector extends ChangeNotifier {
if (reactionInfo != null) { if (reactionInfo != null) {
// Check if we've already processed this exact reaction // Check if we've already processed this exact reaction
_processedContactReactions.putIfAbsent(pubKeyHex, () => {}); _processedContactReactions.putIfAbsent(pubKeyHex, () => {});
final reactionIdentifier = reactionInfo.senderName = _resolveContactSenderName(message, null, false);
'${reactionInfo.targetHash}_${reactionInfo.emoji}'; final reactionIdentifier = reactionInfo.identifier();
final isDuplicate = _processedContactReactions[pubKeyHex]!.contains( final isDuplicate = _processedContactReactions[pubKeyHex]!.contains(
reactionIdentifier, reactionIdentifier,
); );
if (!isDuplicate) { if (!isDuplicate) {
// New reaction - process it // New reaction - process it
appLogger.info('Adding reaction, id: $reactionIdentifier');
// For hashing and dup checking, we use null for sender names in
// normal 1:1 chats. This way if we and they have different ideas
// about what their name is, reactions still work. But for reaction
// reports, we want to know who sent what, rather than infer it later,
// so we'll add it to the reactionInfo before storing it.
reactionInfo.senderName ??= message.isOutgoing
? selfName
: getContactByPubKeyHex(pubKeyHex)?.name ?? '???';
_processContactReaction(messages, reactionInfo, pubKeyHex); _processContactReaction(messages, reactionInfo, pubKeyHex);
_messageStore.saveMessages(pubKeyHex, messages); _messageStore.saveMessages(pubKeyHex, messages);
@@ -6287,10 +6310,7 @@ class MeshCoreConnector extends ChangeNotifier {
ReactionInfo reactionInfo, ReactionInfo reactionInfo,
String contactPubKeyHex, String contactPubKeyHex,
) { ) {
final contact = _contacts.cast<Contact?>().firstWhere( final contact = getContactByPubKeyHex(contactPubKeyHex);
(c) => c?.publicKeyHex == contactPubKeyHex,
orElse: () => null,
);
final isRoomServer = contact?.type == advTypeRoom; final isRoomServer = contact?.type == advTypeRoom;
ReactionHelper.applyReaction<Message>( ReactionHelper.applyReaction<Message>(
@@ -6339,10 +6359,7 @@ class MeshCoreConnector extends ChangeNotifier {
) { ) {
final messages = _conversations[pubKeyHex]; final messages = _conversations[pubKeyHex];
if (messages == null) return; if (messages == null) return;
final contact = _contacts.cast<Contact?>().firstWhere( final contact = getContactByPubKeyHex(pubKeyHex);
(c) => c?.publicKeyHex == pubKeyHex,
orElse: () => null,
);
final isRoomServer = contact?.type == advTypeRoom; final isRoomServer = contact?.type == advTypeRoom;
for (int i = messages.length - 1; i >= 0; i--) { for (int i = messages.length - 1; i >= 0; i--) {
final msg = messages[i]; final msg = messages[i];
@@ -6501,12 +6518,11 @@ class MeshCoreConnector extends ChangeNotifier {
final messages = _channelMessages[channelIndex]!; final messages = _channelMessages[channelIndex]!;
// Parse reaction info // Parse reaction info
final reactionInfo = ChannelMessage.parseReaction(message.text); final reactionInfo = message.parseReaction();
if (reactionInfo != null) { if (reactionInfo != null) {
// Check if we've already processed this exact reaction // Check if we've already processed this exact reaction
_processedChannelReactions.putIfAbsent(channelIndex, () => {}); _processedChannelReactions.putIfAbsent(channelIndex, () => {});
final reactionIdentifier = final reactionIdentifier = reactionInfo.identifier();
'${reactionInfo.targetHash}_${reactionInfo.emoji}';
final isDuplicate = _processedChannelReactions[channelIndex]!.contains( final isDuplicate = _processedChannelReactions[channelIndex]!.contains(
reactionIdentifier, reactionIdentifier,
@@ -6514,6 +6530,7 @@ class MeshCoreConnector extends ChangeNotifier {
if (!isDuplicate) { if (!isDuplicate) {
// New reaction - process it // New reaction - process it
appLogger.info('Adding channel reaction, id: $reactionIdentifier');
_processReaction(messages, reactionInfo); _processReaction(messages, reactionInfo);
// Save updated messages // Save updated messages
_channelMessageStore.saveChannelMessages(channelIndex, messages); _channelMessageStore.saveChannelMessages(channelIndex, messages);
+17 -6
View File
@@ -3,8 +3,17 @@ import '../widgets/emoji_picker.dart';
class ReactionInfo { class ReactionInfo {
final String targetHash; final String targetHash;
final String emoji; final String emoji;
String? senderName;
ReactionInfo({required this.targetHash, required this.emoji}); ReactionInfo({
required this.targetHash,
required this.emoji,
this.senderName,
});
String identifier() {
return '$targetHash:$emoji:${senderName ?? ""}';
}
} }
class ReactionHelper { class ReactionHelper {
@@ -26,9 +35,8 @@ class ReactionHelper {
required int Function(T) getTimestampSecs, required int Function(T) getTimestampSecs,
required String? Function(T) getSenderName, required String? Function(T) getSenderName,
required String Function(T) getMessageText, required String Function(T) getMessageText,
required Map<String, int> Function(T) getReactions, required Map<String, List<String?>> Function(T) getReactions,
required bool Function(T) shouldSkip, required bool Function(T) shouldSkip,
required void Function(int index, Map<String, int> newReactions)
updateMessage, updateMessage,
}) { }) {
final targetHash = reactionInfo.targetHash; final targetHash = reactionInfo.targetHash;
@@ -42,9 +50,12 @@ class ReactionHelper {
getMessageText(msg), getMessageText(msg),
); );
if (msgHash == targetHash) { if (msgHash == targetHash) {
final currentReactions = Map<String, int>.from(getReactions(msg)); final currentReactions = Map<String, List<String?>>.from(
currentReactions[reactionInfo.emoji] = getReactions(msg),
(currentReactions[reactionInfo.emoji] ?? 0) + 1; );
(currentReactions[reactionInfo.emoji] ??= []).add(
reactionInfo.senderName,
);
updateMessage(i, currentReactions); updateMessage(i, currentReactions);
return true; return true;
} }
+2 -1
View File
@@ -485,6 +485,7 @@
} }
} }
}, },
"chat_selectSendAction": "Изберете действие за изпращане",
"chat_sendGif": "Изпрати GIF", "chat_sendGif": "Изпрати GIF",
"chat_reply": "Отговори", "chat_reply": "Отговори",
"chat_addReaction": "Добави Реакция", "chat_addReaction": "Добави Реакция",
@@ -2756,7 +2757,7 @@
"channels_regionNotSet": "Регион: ние", "channels_regionNotSet": "Регион: ние",
"channels_regionSelect_Title": "Выберете регион", "channels_regionSelect_Title": "Выберете регион",
"channels_clearRegion": "Чиста зона", "channels_clearRegion": "Чиста зона",
"chat_sendImage": "Изпрати изображение", "chat_sendImageLora": "Изпращане на изображение чрез MeshCore",
"chat_imagePickFailed": "Не мог да откривам та изображин", "chat_imagePickFailed": "Не мог да откривам та изображин",
"chat_receivedGif": "Получил GIF", "chat_receivedGif": "Получил GIF",
"repeater_keySettings": "Изменяне на идентичности ключа", "repeater_keySettings": "Изменяне на идентичности ключа",
+2 -1
View File
@@ -507,6 +507,7 @@
} }
} }
}, },
"chat_selectSendAction": "Sendeaktion auswählen",
"chat_sendGif": "GIF senden", "chat_sendGif": "GIF senden",
"chat_reply": "Antworten", "chat_reply": "Antworten",
"chat_addReaction": "Reaktion hinzufügen", "chat_addReaction": "Reaktion hinzufügen",
@@ -2892,7 +2893,7 @@
"repeater_pathHashModeOption2": "2 - 3 Bytes", "repeater_pathHashModeOption2": "2 - 3 Bytes",
"repeater_pathHashModeOption3": "3 - 4 Bytes", "repeater_pathHashModeOption3": "3 - 4 Bytes",
"appSettings_batteryLipoHv": "LiPo HV (3,0–4,35 V)", "appSettings_batteryLipoHv": "LiPo HV (3,0–4,35 V)",
"chat_sendImage": "Bild senden", "chat_sendImageLora": "Bild über MeshCore senden",
"chat_imagePickFailed": "Konnte dieses Bild nicht öffnen.", "chat_imagePickFailed": "Konnte dieses Bild nicht öffnen.",
"chat_receivedGif": "Erhalten eines GIF", "chat_receivedGif": "Erhalten eines GIF",
"repeater_keySettings": "Identitätsschlüssel ändern", "repeater_keySettings": "Identitätsschlüssel ändern",
+3 -1
View File
@@ -742,8 +742,9 @@
} }
} }
}, },
"chat_selectSendAction": "Select send action",
"chat_sendGif": "Send GIF", "chat_sendGif": "Send GIF",
"chat_sendImage": "Send image", "chat_sendImageLora": "Send image via meshcore",
"chat_imagePickFailed": "Couldn't open that image", "chat_imagePickFailed": "Couldn't open that image",
"@chat_imagePickFailed": { "@chat_imagePickFailed": {
"description": "Shown when picking or reading a photo to send fails" "description": "Shown when picking or reading a photo to send fails"
@@ -752,6 +753,7 @@
"chat_reply": "Reply", "chat_reply": "Reply",
"chat_addReaction": "Add Reaction", "chat_addReaction": "Add Reaction",
"chat_me": "Me", "chat_me": "Me",
"reaction_report": "Emoji Reactions",
"emojiCategorySmileys": "Smileys", "emojiCategorySmileys": "Smileys",
"emojiCategoryGestures": "Gestures", "emojiCategoryGestures": "Gestures",
"emojiCategoryHearts": "Hearts", "emojiCategoryHearts": "Hearts",
+2 -1
View File
@@ -507,6 +507,7 @@
} }
} }
}, },
"chat_selectSendAction": "Seleccionar acción de envío",
"chat_sendGif": "Enviar GIF", "chat_sendGif": "Enviar GIF",
"chat_reply": "Responder", "chat_reply": "Responder",
"chat_addReaction": "Añadir Reacción", "chat_addReaction": "Añadir Reacción",
@@ -2890,7 +2891,7 @@
"channels_regionNotSet": "Región: ninguna", "channels_regionNotSet": "Región: ninguna",
"channels_regionSelect_Title": "Seleccione una región", "channels_regionSelect_Title": "Seleccione una región",
"channels_clearRegion": "Zona despejada", "channels_clearRegion": "Zona despejada",
"chat_sendImage": "Enviar imagen", "chat_sendImageLora": "Enviar imagen mediante MeshCore",
"chat_imagePickFailed": "No pude abrir esa imagen", "chat_imagePickFailed": "No pude abrir esa imagen",
"chat_receivedGif": "Recibido un GIF", "chat_receivedGif": "Recibido un GIF",
"repeater_keySettings": "Cambiar Claves de Identidad", "repeater_keySettings": "Cambiar Claves de Identidad",
+2 -1
View File
@@ -507,6 +507,7 @@
} }
} }
}, },
"chat_selectSendAction": "Sélectionner une action d’envoi",
"chat_sendGif": "Envoyer un GIF", "chat_sendGif": "Envoyer un GIF",
"chat_reply": "Répondre", "chat_reply": "Répondre",
"chat_addReaction": "Ajouter une réaction", "chat_addReaction": "Ajouter une réaction",
@@ -2890,7 +2891,7 @@
"channels_regionNotSet": "Région : aucune", "channels_regionNotSet": "Région : aucune",
"channels_regionSelect_Title": "Choisissez une région", "channels_regionSelect_Title": "Choisissez une région",
"channels_clearRegion": "Zone dégagée", "channels_clearRegion": "Zone dégagée",
"chat_sendImage": "Envoyer l'image", "chat_sendImageLora": "Envoyer une image via MeshCore",
"chat_imagePickFailed": "Je n'ai pas pu ouvrir cette image", "chat_imagePickFailed": "Je n'ai pas pu ouvrir cette image",
"chat_receivedGif": "Reçu un GIF", "chat_receivedGif": "Reçu un GIF",
"repeater_keySettings": "Modifier les clés d'identité", "repeater_keySettings": "Modifier les clés d'identité",
+2 -1
View File
@@ -657,6 +657,7 @@
} }
} }
}, },
"chat_selectSendAction": "Küldési művelet kiválasztása",
"chat_sendGif": "GIF küldése", "chat_sendGif": "GIF küldése",
"chat_reply": "Válasz", "chat_reply": "Válasz",
"chat_addReaction": "Reakció hozzáadása", "chat_addReaction": "Reakció hozzáadása",
@@ -2794,7 +2795,7 @@
"channels_regionNotSet": "Tájékoztetés: nem", "channels_regionNotSet": "Tájékoztetés: nem",
"channels_regionSelect_Title": "Válassz egy regionot", "channels_regionSelect_Title": "Válassz egy regionot",
"channels_clearRegion": "Kéres kör", "channels_clearRegion": "Kéres kör",
"chat_sendImage": "Felhasználj az image", "chat_sendImageLora": "Kép küldése MeshCore-on keresztül",
"chat_imagePickFailed": "Nem tudtam ezt a fenti fényre kapni", "chat_imagePickFailed": "Nem tudtam ezt a fenti fényre kapni",
"chat_receivedGif": "GIF-ot kapott", "chat_receivedGif": "GIF-ot kapott",
"repeater_keySettings": "Képzőítsekei jelölt", "repeater_keySettings": "Képzőítsekei jelölt",
+2 -1
View File
@@ -551,6 +551,7 @@
} }
} }
}, },
"chat_selectSendAction": "Seleziona azione di invio",
"chat_sendGif": "Invia GIF", "chat_sendGif": "Invia GIF",
"chat_reply": "Rispondi", "chat_reply": "Rispondi",
"chat_addReaction": "Aggiungi Reazione", "chat_addReaction": "Aggiungi Reazione",
@@ -2890,7 +2891,7 @@
"channels_regionNotSet": "Regione: nessuna", "channels_regionNotSet": "Regione: nessuna",
"channels_regionSelect_Title": "Scegli una regione", "channels_regionSelect_Title": "Scegli una regione",
"channels_clearRegion": "Zona chiara", "channels_clearRegion": "Zona chiara",
"chat_sendImage": "Invia immagine", "chat_sendImageLora": "Invia immagine tramite MeshCore",
"chat_imagePickFailed": "Non sono riuscito ad aprire quell'immagine", "chat_imagePickFailed": "Non sono riuscito ad aprire quell'immagine",
"chat_receivedGif": "Ricevuto un GIF", "chat_receivedGif": "Ricevuto un GIF",
"repeater_keySettings": "Cambia le Chiavi di Identità", "repeater_keySettings": "Cambia le Chiavi di Identità",
+2 -1
View File
@@ -675,6 +675,7 @@
} }
} }
}, },
"chat_selectSendAction": "送信アクションを選択",
"chat_sendGif": "GIF を送信", "chat_sendGif": "GIF を送信",
"chat_reply": "返信", "chat_reply": "返信",
"chat_addReaction": "リアクションを追加", "chat_addReaction": "リアクションを追加",
@@ -2890,7 +2891,7 @@
"channels_regionNotSet": "地域:なし", "channels_regionNotSet": "地域:なし",
"channels_regionSelect_Title": "地域を選択する", "channels_regionSelect_Title": "地域を選択する",
"channels_clearRegion": "クリアな地域", "channels_clearRegion": "クリアな地域",
"chat_sendImage": "画像を送信", "chat_sendImageLora": "MeshCore経由で画像を送信",
"chat_imagePickFailed": "その画像を開けませんでした", "chat_imagePickFailed": "その画像を開けませんでした",
"chat_receivedGif": "GIFを受け取りました", "chat_receivedGif": "GIFを受け取りました",
"repeater_keySettings": "アイデンティティキーの変更", "repeater_keySettings": "アイデンティティキーの変更",
+2 -1
View File
@@ -657,6 +657,7 @@
} }
} }
}, },
"chat_selectSendAction": "전송 작업 선택",
"chat_sendGif": "GIF 보내기", "chat_sendGif": "GIF 보내기",
"chat_reply": "답변", "chat_reply": "답변",
"chat_addReaction": "댓글 추가", "chat_addReaction": "댓글 추가",
@@ -2890,7 +2891,7 @@
"channels_regionNotSet": "지역: 없음", "channels_regionNotSet": "지역: 없음",
"channels_regionSelect_Title": "지역을 선택하세요", "channels_regionSelect_Title": "지역을 선택하세요",
"channels_clearRegion": "명확한 지역", "channels_clearRegion": "명확한 지역",
"chat_sendImage": "이미지를 보내세요", "chat_sendImageLora": "MeshCore를 통해 이미지 보내기",
"chat_imagePickFailed": "그 이미지를 열 수 없었어요.", "chat_imagePickFailed": "그 이미지를 열 수 없었어요.",
"chat_receivedGif": "GIF를 받았습니다", "chat_receivedGif": "GIF를 받았습니다",
"repeater_keySettings": "신원 키 변경", "repeater_keySettings": "신원 키 변경",
+15 -3
View File
@@ -2740,17 +2740,23 @@ abstract class AppLocalizations {
/// **'Retry {current}/{max}'** /// **'Retry {current}/{max}'**
String chat_retryCount(int current, int max); String chat_retryCount(int current, int max);
/// No description provided for @chat_selectSendAction.
///
/// In en, this message translates to:
/// **'Select send action'**
String get chat_selectSendAction;
/// No description provided for @chat_sendGif. /// No description provided for @chat_sendGif.
/// ///
/// In en, this message translates to: /// In en, this message translates to:
/// **'Send GIF'** /// **'Send GIF'**
String get chat_sendGif; String get chat_sendGif;
/// No description provided for @chat_sendImage. /// No description provided for @chat_sendImageLora.
/// ///
/// In en, this message translates to: /// In en, this message translates to:
/// **'Send image'** /// **'Send image via meshcore'**
String get chat_sendImage; String get chat_sendImageLora;
/// Shown when picking or reading a photo to send fails /// Shown when picking or reading a photo to send fails
/// ///
@@ -2782,6 +2788,12 @@ abstract class AppLocalizations {
/// **'Me'** /// **'Me'**
String get chat_me; String get chat_me;
/// No description provided for @reaction_report.
///
/// In en, this message translates to:
/// **'Emoji Reactions'**
String get reaction_report;
/// No description provided for @emojiCategorySmileys. /// No description provided for @emojiCategorySmileys.
/// ///
/// In en, this message translates to: /// In en, this message translates to:
+7 -1
View File
@@ -1495,11 +1495,14 @@ class AppLocalizationsBg extends AppLocalizations {
return 'Опитай отново $current/$max'; return 'Опитай отново $current/$max';
} }
@override
String get chat_selectSendAction => 'Изберете действие за изпращане';
@override @override
String get chat_sendGif => 'Изпрати GIF'; String get chat_sendGif => 'Изпрати GIF';
@override @override
String get chat_sendImage => 'Изпрати изображение'; String get chat_sendImageLora => 'Изпращане на изображение чрез MeshCore';
@override @override
String get chat_imagePickFailed => 'Не мог да откривам та изображин'; String get chat_imagePickFailed => 'Не мог да откривам та изображин';
@@ -1516,6 +1519,9 @@ class AppLocalizationsBg extends AppLocalizations {
@override @override
String get chat_me => 'Аз'; String get chat_me => 'Аз';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Емотикони'; String get emojiCategorySmileys => 'Емотикони';
+7 -1
View File
@@ -1495,11 +1495,14 @@ class AppLocalizationsDe extends AppLocalizations {
return 'Wiederholen $current/$max'; return 'Wiederholen $current/$max';
} }
@override
String get chat_selectSendAction => 'Sendeaktion auswählen';
@override @override
String get chat_sendGif => 'GIF senden'; String get chat_sendGif => 'GIF senden';
@override @override
String get chat_sendImage => 'Bild senden'; String get chat_sendImageLora => 'Bild über MeshCore senden';
@override @override
String get chat_imagePickFailed => 'Konnte dieses Bild nicht öffnen.'; String get chat_imagePickFailed => 'Konnte dieses Bild nicht öffnen.';
@@ -1516,6 +1519,9 @@ class AppLocalizationsDe extends AppLocalizations {
@override @override
String get chat_me => 'Ich'; String get chat_me => 'Ich';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emoticons'; String get emojiCategorySmileys => 'Emoticons';
+7 -1
View File
@@ -1462,11 +1462,14 @@ class AppLocalizationsEn extends AppLocalizations {
return 'Retry $current/$max'; return 'Retry $current/$max';
} }
@override
String get chat_selectSendAction => 'Select send action';
@override @override
String get chat_sendGif => 'Send GIF'; String get chat_sendGif => 'Send GIF';
@override @override
String get chat_sendImage => 'Send image'; String get chat_sendImageLora => 'Send image via meshcore';
@override @override
String get chat_imagePickFailed => 'Couldn\'t open that image'; String get chat_imagePickFailed => 'Couldn\'t open that image';
@@ -1483,6 +1486,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override @override
String get chat_me => 'Me'; String get chat_me => 'Me';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Smileys'; String get emojiCategorySmileys => 'Smileys';
+7 -1
View File
@@ -1490,11 +1490,14 @@ class AppLocalizationsEs extends AppLocalizations {
return 'Reintentar $current/$max'; return 'Reintentar $current/$max';
} }
@override
String get chat_selectSendAction => 'Seleccionar acción de envío';
@override @override
String get chat_sendGif => 'Enviar GIF'; String get chat_sendGif => 'Enviar GIF';
@override @override
String get chat_sendImage => 'Enviar imagen'; String get chat_sendImageLora => 'Enviar imagen mediante MeshCore';
@override @override
String get chat_imagePickFailed => 'No pude abrir esa imagen'; String get chat_imagePickFailed => 'No pude abrir esa imagen';
@@ -1511,6 +1514,9 @@ class AppLocalizationsEs extends AppLocalizations {
@override @override
String get chat_me => 'Yo'; String get chat_me => 'Yo';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emoticones'; String get emojiCategorySmileys => 'Emoticones';
+7 -1
View File
@@ -1493,11 +1493,14 @@ class AppLocalizationsFr extends AppLocalizations {
return 'Essai $current/$max'; return 'Essai $current/$max';
} }
@override
String get chat_selectSendAction => 'Sélectionner une action d’envoi';
@override @override
String get chat_sendGif => 'Envoyer un GIF'; String get chat_sendGif => 'Envoyer un GIF';
@override @override
String get chat_sendImage => 'Envoyer l\'image'; String get chat_sendImageLora => 'Envoyer une image via MeshCore';
@override @override
String get chat_imagePickFailed => 'Je n\'ai pas pu ouvrir cette image'; String get chat_imagePickFailed => 'Je n\'ai pas pu ouvrir cette image';
@@ -1514,6 +1517,9 @@ class AppLocalizationsFr extends AppLocalizations {
@override @override
String get chat_me => 'Moi'; String get chat_me => 'Moi';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Émojis'; String get emojiCategorySmileys => 'Émojis';
+7 -1
View File
@@ -1485,11 +1485,14 @@ class AppLocalizationsHu extends AppLocalizations {
return 'Próbálja újra $current/$max'; return 'Próbálja újra $current/$max';
} }
@override
String get chat_selectSendAction => 'Küldési művelet kiválasztása';
@override @override
String get chat_sendGif => 'GIF küldése'; String get chat_sendGif => 'GIF küldése';
@override @override
String get chat_sendImage => 'Felhasználj az image'; String get chat_sendImageLora => 'Kép küldése MeshCore-on keresztül';
@override @override
String get chat_imagePickFailed => 'Nem tudtam ezt a fenti fényre kapni'; String get chat_imagePickFailed => 'Nem tudtam ezt a fenti fényre kapni';
@@ -1506,6 +1509,9 @@ class AppLocalizationsHu extends AppLocalizations {
@override @override
String get chat_me => 'Nekem'; String get chat_me => 'Nekem';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Hangulatjelek'; String get emojiCategorySmileys => 'Hangulatjelek';
+7 -1
View File
@@ -1493,11 +1493,14 @@ class AppLocalizationsIt extends AppLocalizations {
return 'Riprova $current/$max'; return 'Riprova $current/$max';
} }
@override
String get chat_selectSendAction => 'Seleziona azione di invio';
@override @override
String get chat_sendGif => 'Invia GIF'; String get chat_sendGif => 'Invia GIF';
@override @override
String get chat_sendImage => 'Invia immagine'; String get chat_sendImageLora => 'Invia immagine tramite MeshCore';
@override @override
String get chat_imagePickFailed => String get chat_imagePickFailed =>
@@ -1515,6 +1518,9 @@ class AppLocalizationsIt extends AppLocalizations {
@override @override
String get chat_me => 'Io'; String get chat_me => 'Io';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emoji'; String get emojiCategorySmileys => 'Emoji';
+7 -1
View File
@@ -1418,11 +1418,14 @@ class AppLocalizationsJa extends AppLocalizations {
return '$current/$max 回目'; return '$current/$max 回目';
} }
@override
String get chat_selectSendAction => '送信アクションを選択';
@override @override
String get chat_sendGif => 'GIF を送信'; String get chat_sendGif => 'GIF を送信';
@override @override
String get chat_sendImage => '画像を送信'; String get chat_sendImageLora => 'MeshCore経由で画像を送信';
@override @override
String get chat_imagePickFailed => 'その画像を開けませんでした'; String get chat_imagePickFailed => 'その画像を開けませんでした';
@@ -1439,6 +1442,9 @@ class AppLocalizationsJa extends AppLocalizations {
@override @override
String get chat_me => '私'; String get chat_me => '私';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => '顔文字'; String get emojiCategorySmileys => '顔文字';
+7 -1
View File
@@ -1421,11 +1421,14 @@ class AppLocalizationsKo extends AppLocalizations {
return '$current/$max 시도'; return '$current/$max 시도';
} }
@override
String get chat_selectSendAction => '전송 작업 선택';
@override @override
String get chat_sendGif => 'GIF 보내기'; String get chat_sendGif => 'GIF 보내기';
@override @override
String get chat_sendImage => '이미지를 보내세요'; String get chat_sendImageLora => 'MeshCore를 통해 이미지 보내기';
@override @override
String get chat_imagePickFailed => '그 이미지를 열 수 없었어요.'; String get chat_imagePickFailed => '그 이미지를 열 수 없었어요.';
@@ -1442,6 +1445,9 @@ class AppLocalizationsKo extends AppLocalizations {
@override @override
String get chat_me => '나'; String get chat_me => '나';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => '이모티콘'; String get emojiCategorySmileys => '이모티콘';
+7 -1
View File
@@ -1480,11 +1480,14 @@ class AppLocalizationsNl extends AppLocalizations {
return 'Poging opnieuw $current/$max'; return 'Poging opnieuw $current/$max';
} }
@override
String get chat_selectSendAction => 'Verzendactie selecteren';
@override @override
String get chat_sendGif => 'GIF verzenden'; String get chat_sendGif => 'GIF verzenden';
@override @override
String get chat_sendImage => 'Beeld verzenden'; String get chat_sendImageLora => 'Afbeelding verzenden via MeshCore';
@override @override
String get chat_imagePickFailed => 'Kunde die afbeelding niet openen'; String get chat_imagePickFailed => 'Kunde die afbeelding niet openen';
@@ -1501,6 +1504,9 @@ class AppLocalizationsNl extends AppLocalizations {
@override @override
String get chat_me => 'Mijn'; String get chat_me => 'Mijn';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emoji\'s'; String get emojiCategorySmileys => 'Emoji\'s';
+7 -1
View File
@@ -1503,11 +1503,14 @@ class AppLocalizationsPl extends AppLocalizations {
return 'Próba $current/$max'; return 'Próba $current/$max';
} }
@override
String get chat_selectSendAction => 'Wybierz czynność wysyłania';
@override @override
String get chat_sendGif => 'Wyślij GIF'; String get chat_sendGif => 'Wyślij GIF';
@override @override
String get chat_sendImage => 'Wyślij obraz'; String get chat_sendImageLora => 'Wyślij obraz przez MeshCore';
@override @override
String get chat_imagePickFailed => 'Nie mogłem otworzyć tego obrazu'; String get chat_imagePickFailed => 'Nie mogłem otworzyć tego obrazu';
@@ -1524,6 +1527,9 @@ class AppLocalizationsPl extends AppLocalizations {
@override @override
String get chat_me => 'Ja'; String get chat_me => 'Ja';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emoji'; String get emojiCategorySmileys => 'Emoji';
+7 -1
View File
@@ -1489,11 +1489,14 @@ class AppLocalizationsPt extends AppLocalizations {
return 'Tentar $current/$max'; return 'Tentar $current/$max';
} }
@override
String get chat_selectSendAction => 'Selecionar ação de envio';
@override @override
String get chat_sendGif => 'Enviar GIF'; String get chat_sendGif => 'Enviar GIF';
@override @override
String get chat_sendImage => 'Enviar imagem'; String get chat_sendImageLora => 'Enviar imagem via MeshCore';
@override @override
String get chat_imagePickFailed => 'Não consegui abrir essa imagem'; String get chat_imagePickFailed => 'Não consegui abrir essa imagem';
@@ -1510,6 +1513,9 @@ class AppLocalizationsPt extends AppLocalizations {
@override @override
String get chat_me => 'Eu'; String get chat_me => 'Eu';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emojis'; String get emojiCategorySmileys => 'Emojis';
+7 -1
View File
@@ -1493,11 +1493,14 @@ class AppLocalizationsRu extends AppLocalizations {
return 'Попытка $current/$max'; return 'Попытка $current/$max';
} }
@override
String get chat_selectSendAction => 'Выберите действие отправки';
@override @override
String get chat_sendGif => 'Отправить GIF'; String get chat_sendGif => 'Отправить GIF';
@override @override
String get chat_sendImage => 'Отправьте изображение'; String get chat_sendImageLora => 'Отправить изображение через MeshCore';
@override @override
String get chat_imagePickFailed => 'Не удалось открыть это изображение'; String get chat_imagePickFailed => 'Не удалось открыть это изображение';
@@ -1514,6 +1517,9 @@ class AppLocalizationsRu extends AppLocalizations {
@override @override
String get chat_me => 'Я'; String get chat_me => 'Я';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Смайлы'; String get emojiCategorySmileys => 'Смайлы';
+7 -1
View File
@@ -1478,11 +1478,14 @@ class AppLocalizationsSk extends AppLocalizations {
return 'Skúsiť $current/$max'; return 'Skúsiť $current/$max';
} }
@override
String get chat_selectSendAction => 'Vybrať akciu odoslania';
@override @override
String get chat_sendGif => 'Odoslať GIF'; String get chat_sendGif => 'Odoslať GIF';
@override @override
String get chat_sendImage => 'Vyslat obraz'; String get chat_sendImageLora => 'Odoslať obrázok cez MeshCore';
@override @override
String get chat_imagePickFailed => 'Nesmiela jsem otvoriť tento obrázok'; String get chat_imagePickFailed => 'Nesmiela jsem otvoriť tento obrázok';
@@ -1499,6 +1502,9 @@ class AppLocalizationsSk extends AppLocalizations {
@override @override
String get chat_me => 'Mne'; String get chat_me => 'Mne';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emoji'; String get emojiCategorySmileys => 'Emoji';
+7 -1
View File
@@ -1478,11 +1478,14 @@ class AppLocalizationsSl extends AppLocalizations {
return 'Ponovit $current/$max'; return 'Ponovit $current/$max';
} }
@override
String get chat_selectSendAction => 'Izberite dejanje pošiljanja';
@override @override
String get chat_sendGif => 'Pošlji GIF'; String get chat_sendGif => 'Pošlji GIF';
@override @override
String get chat_sendImage => 'Sločaji slik'; String get chat_sendImageLora => 'Pošlji sliko prek MeshCore';
@override @override
String get chat_imagePickFailed => 'Nispeval sem tega ta slik'; String get chat_imagePickFailed => 'Nispeval sem tega ta slik';
@@ -1499,6 +1502,9 @@ class AppLocalizationsSl extends AppLocalizations {
@override @override
String get chat_me => 'jaz'; String get chat_me => 'jaz';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emoji'; String get emojiCategorySmileys => 'Emoji';
+7 -1
View File
@@ -1470,11 +1470,14 @@ class AppLocalizationsSv extends AppLocalizations {
return 'Försök igen $current/$max'; return 'Försök igen $current/$max';
} }
@override
String get chat_selectSendAction => 'Välj sändningsåtgärd';
@override @override
String get chat_sendGif => 'Skicka GIF'; String get chat_sendGif => 'Skicka GIF';
@override @override
String get chat_sendImage => 'Send vagnbild'; String get chat_sendImageLora => 'Skicka bild via MeshCore';
@override @override
String get chat_imagePickFailed => 'Kunde inte öppna det bildet'; String get chat_imagePickFailed => 'Kunde inte öppna det bildet';
@@ -1491,6 +1494,9 @@ class AppLocalizationsSv extends AppLocalizations {
@override @override
String get chat_me => 'Mig'; String get chat_me => 'Mig';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Emojis'; String get emojiCategorySmileys => 'Emojis';
+7 -2
View File
@@ -1483,12 +1483,14 @@ class AppLocalizationsUk extends AppLocalizations {
return 'Повторна спроба $current/$max'; return 'Повторна спроба $current/$max';
} }
@override
String get chat_selectSendAction => 'Виберіть дію надсилання';
@override @override
String get chat_sendGif => 'Надіслати GIF'; String get chat_sendGif => 'Надіслати GIF';
@override @override
String get chat_sendImage => String get chat_sendImageLora => 'Надіслати зображення через MeshCore';
'Нашкоду зовні\n\n(or more naturally, depending on context)\n\nПошукуєте изображення';
@override @override
String get chat_imagePickFailed => 'Неможливо відкрити це изображення'; String get chat_imagePickFailed => 'Неможливо відкрити це изображення';
@@ -1505,6 +1507,9 @@ class AppLocalizationsUk extends AppLocalizations {
@override @override
String get chat_me => 'Я'; String get chat_me => 'Я';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => 'Емодзі'; String get emojiCategorySmileys => 'Емодзі';
+7 -1
View File
@@ -1404,11 +1404,14 @@ class AppLocalizationsZh extends AppLocalizations {
return '重试 $current/$max'; return '重试 $current/$max';
} }
@override
String get chat_selectSendAction => '选择发送操作';
@override @override
String get chat_sendGif => '发送 GIF'; String get chat_sendGif => '发送 GIF';
@override @override
String get chat_sendImage => '发送图片'; String get chat_sendImageLora => '通过 MeshCore 发送图片';
@override @override
String get chat_imagePickFailed => '无法打开该图片'; String get chat_imagePickFailed => '无法打开该图片';
@@ -1425,6 +1428,9 @@ class AppLocalizationsZh extends AppLocalizations {
@override @override
String get chat_me => '我'; String get chat_me => '我';
@override
String get reaction_report => 'Emoji Reactions';
@override @override
String get emojiCategorySmileys => '表情'; String get emojiCategorySmileys => '表情';
+2 -1
View File
@@ -485,6 +485,7 @@
} }
} }
}, },
"chat_selectSendAction": "Verzendactie selecteren",
"chat_sendGif": "GIF verzenden", "chat_sendGif": "GIF verzenden",
"chat_reply": "Reageren", "chat_reply": "Reageren",
"chat_addReaction": "Reactie toevoegen", "chat_addReaction": "Reactie toevoegen",
@@ -2756,7 +2757,7 @@
"channels_regionNotSet": "Regio: geen", "channels_regionNotSet": "Regio: geen",
"channels_regionSelect_Title": "Kies een regio", "channels_regionSelect_Title": "Kies een regio",
"channels_clearRegion": "Duidelijke regio", "channels_clearRegion": "Duidelijke regio",
"chat_sendImage": "Beeld verzenden", "chat_sendImageLora": "Afbeelding verzenden via MeshCore",
"chat_imagePickFailed": "Kunde die afbeelding niet openen", "chat_imagePickFailed": "Kunde die afbeelding niet openen",
"chat_receivedGif": "Ontvangen van een GIF", "chat_receivedGif": "Ontvangen van een GIF",
"repeater_keySettings": "Verander de Identiteitskies", "repeater_keySettings": "Verander de Identiteitskies",
+2 -1
View File
@@ -495,6 +495,7 @@
} }
} }
}, },
"chat_selectSendAction": "Wybierz czynność wysyłania",
"chat_sendGif": "Wyślij GIF", "chat_sendGif": "Wyślij GIF",
"chat_reply": "Odpowiedz", "chat_reply": "Odpowiedz",
"chat_addReaction": "Dodaj Reakcję", "chat_addReaction": "Dodaj Reakcję",
@@ -2794,7 +2795,7 @@
"channels_regionNotSet": "Region: brak", "channels_regionNotSet": "Region: brak",
"channels_regionSelect_Title": "Wybierz region", "channels_regionSelect_Title": "Wybierz region",
"channels_clearRegion": "Przejrzyste obszar", "channels_clearRegion": "Przejrzyste obszar",
"chat_sendImage": "Wyślij obraz", "chat_sendImageLora": "Wyślij obraz przez MeshCore",
"chat_imagePickFailed": "Nie mogłem otworzyć tego obrazu", "chat_imagePickFailed": "Nie mogłem otworzyć tego obrazu",
"chat_receivedGif": "Otrzymano GIF", "chat_receivedGif": "Otrzymano GIF",
"repeater_keySettings": "Zmiana kluczy tożsamości", "repeater_keySettings": "Zmiana kluczy tożsamości",
+2 -1
View File
@@ -485,6 +485,7 @@
} }
} }
}, },
"chat_selectSendAction": "Selecionar ação de envio",
"chat_sendGif": "Enviar GIF", "chat_sendGif": "Enviar GIF",
"chat_reply": "Responder", "chat_reply": "Responder",
"chat_addReaction": "Adicionar Reação", "chat_addReaction": "Adicionar Reação",
@@ -2756,7 +2757,7 @@
"channels_regionNotSet": "Região: nenhuma", "channels_regionNotSet": "Região: nenhuma",
"channels_regionSelect_Title": "Escolha uma região", "channels_regionSelect_Title": "Escolha uma região",
"channels_clearRegion": "Região desimpedida", "channels_clearRegion": "Região desimpedida",
"chat_sendImage": "Enviar imagem", "chat_sendImageLora": "Enviar imagem via MeshCore",
"chat_imagePickFailed": "Não consegui abrir essa imagem", "chat_imagePickFailed": "Não consegui abrir essa imagem",
"chat_receivedGif": "Recebi um GIF", "chat_receivedGif": "Recebi um GIF",
"repeater_keySettings": "Alterar Chaves de Identidade", "repeater_keySettings": "Alterar Chaves de Identidade",
+2 -1
View File
@@ -316,6 +316,7 @@
"chat_messageDeleted": "Сообщение удалено", "chat_messageDeleted": "Сообщение удалено",
"chat_retryingMessage": "Повтор отправки сообщения", "chat_retryingMessage": "Повтор отправки сообщения",
"chat_retryCount": "Попытка {current}/{max}", "chat_retryCount": "Попытка {current}/{max}",
"chat_selectSendAction": "Выберите действие отправки",
"chat_sendGif": "Отправить GIF", "chat_sendGif": "Отправить GIF",
"chat_reply": "Ответить", "chat_reply": "Ответить",
"chat_addReaction": "Добавить реакцию", "chat_addReaction": "Добавить реакцию",
@@ -2059,7 +2060,7 @@
"channels_regionNotSet": "Регион: отсутствует", "channels_regionNotSet": "Регион: отсутствует",
"channels_regionSelect_Title": "Выберите регион", "channels_regionSelect_Title": "Выберите регион",
"channels_clearRegion": "Чистый регион", "channels_clearRegion": "Чистый регион",
"chat_sendImage": "Отправьте изображение", "chat_sendImageLora": "Отправить изображение через MeshCore",
"chat_imagePickFailed": "Не удалось открыть это изображение", "chat_imagePickFailed": "Не удалось открыть это изображение",
"chat_receivedGif": "Получен GIF", "chat_receivedGif": "Получен GIF",
"repeater_keySettings": "Изменить ключи идентичности", "repeater_keySettings": "Изменить ключи идентичности",
+2 -1
View File
@@ -485,6 +485,7 @@
} }
} }
}, },
"chat_selectSendAction": "Vybrať akciu odoslania",
"chat_sendGif": "Odoslať GIF", "chat_sendGif": "Odoslať GIF",
"chat_reply": "Odpovedať", "chat_reply": "Odpovedať",
"chat_addReaction": "Pridať Reakciu", "chat_addReaction": "Pridať Reakciu",
@@ -2756,7 +2757,7 @@
"channels_regionNotSet": "Region: žiadné", "channels_regionNotSet": "Region: žiadné",
"channels_regionSelect_Title": "Vyberte region", "channels_regionSelect_Title": "Vyberte region",
"channels_clearRegion": "Jasný údajný oblasť", "channels_clearRegion": "Jasný údajný oblasť",
"chat_sendImage": "Vyslat obraz", "chat_sendImageLora": "Odoslať obrázok cez MeshCore",
"chat_imagePickFailed": "Nesmiela jsem otvoriť tento obrázok", "chat_imagePickFailed": "Nesmiela jsem otvoriť tento obrázok",
"chat_receivedGif": "Odeslaný GIF", "chat_receivedGif": "Odeslaný GIF",
"repeater_keySettings": "Zmena identititačných klíčov", "repeater_keySettings": "Zmena identititačných klíčov",
+2 -1
View File
@@ -485,6 +485,7 @@
} }
} }
}, },
"chat_selectSendAction": "Izberite dejanje pošiljanja",
"chat_sendGif": "Pošlji GIF", "chat_sendGif": "Pošlji GIF",
"chat_reply": "Odgovori", "chat_reply": "Odgovori",
"chat_addReaction": "Dodaj reakcijo", "chat_addReaction": "Dodaj reakcijo",
@@ -2756,7 +2757,7 @@
"channels_regionNotSet": "Region: brak", "channels_regionNotSet": "Region: brak",
"channels_regionSelect_Title": "Vablajte region", "channels_regionSelect_Title": "Vablajte region",
"channels_clearRegion": "Jasna regija", "channels_clearRegion": "Jasna regija",
"chat_sendImage": "Sločaji slik", "chat_sendImageLora": "Pošlji sliko prek MeshCore",
"chat_imagePickFailed": "Nispeval sem tega ta slik", "chat_imagePickFailed": "Nispeval sem tega ta slik",
"chat_receivedGif": "Otrvljen GIF", "chat_receivedGif": "Otrvljen GIF",
"repeater_keySettings": "Zmeničke ključe identitete", "repeater_keySettings": "Zmeničke ključe identitete",
+2 -1
View File
@@ -485,6 +485,7 @@
} }
} }
}, },
"chat_selectSendAction": "Välj sändningsåtgärd",
"chat_sendGif": "Skicka GIF", "chat_sendGif": "Skicka GIF",
"chat_reply": "Svara", "chat_reply": "Svara",
"chat_addReaction": "Lägg till reaktion", "chat_addReaction": "Lägg till reaktion",
@@ -2756,7 +2757,7 @@
"channels_regionNotSet": "Region: ingen", "channels_regionNotSet": "Region: ingen",
"channels_regionSelect_Title": "Välj en region", "channels_regionSelect_Title": "Välj en region",
"channels_clearRegion": "klar region", "channels_clearRegion": "klar region",
"chat_sendImage": "Send vagnbild", "chat_sendImageLora": "Skicka bild via MeshCore",
"chat_imagePickFailed": "Kunde inte öppna det bildet", "chat_imagePickFailed": "Kunde inte öppna det bildet",
"chat_receivedGif": "Mottagit en GIF", "chat_receivedGif": "Mottagit en GIF",
"repeater_keySettings": "Ändra identitetsnyckel", "repeater_keySettings": "Ändra identitetsnyckel",
+2 -1
View File
@@ -488,6 +488,7 @@
} }
} }
}, },
"chat_selectSendAction": "Виберіть дію надсилання",
"chat_sendGif": "Надіслати GIF", "chat_sendGif": "Надіслати GIF",
"chat_reply": "Відповісти", "chat_reply": "Відповісти",
"chat_addReaction": "Додати реакцію", "chat_addReaction": "Додати реакцію",
@@ -2736,7 +2737,7 @@
"channels_regionNotSet": "Ріон: нема", "channels_regionNotSet": "Ріон: нема",
"channels_regionSelect_Title": "Вybірте регіон", "channels_regionSelect_Title": "Вybірте регіон",
"channels_clearRegion": "Чистя зона", "channels_clearRegion": "Чистя зона",
"chat_sendImage": "Нашкоду зовні\n\n(or more naturally, depending on context)\n\nПошукуєте изображення", "chat_sendImageLora": "Надіслати зображення через MeshCore",
"chat_imagePickFailed": "Неможливо відкрити це изображення", "chat_imagePickFailed": "Неможливо відкрити це изображення",
"chat_receivedGif": "Підймовано GIF", "chat_receivedGif": "Підймовано GIF",
"repeater_keySettings": "Зміна ключів ідентифікації", "repeater_keySettings": "Зміна ключів ідентифікації",
+2 -1
View File
@@ -512,6 +512,7 @@
} }
} }
}, },
"chat_selectSendAction": "选择发送操作",
"chat_sendGif": "发送 GIF", "chat_sendGif": "发送 GIF",
"chat_reply": "回复", "chat_reply": "回复",
"chat_addReaction": "添加表情", "chat_addReaction": "添加表情",
@@ -2761,7 +2762,7 @@
"channels_regionNotSet": "地区:无", "channels_regionNotSet": "地区:无",
"channels_regionSelect_Title": "选择一个地区", "channels_regionSelect_Title": "选择一个地区",
"channels_clearRegion": "无碍区域", "channels_clearRegion": "无碍区域",
"chat_sendImage": "发送图片", "chat_sendImageLora": "通过 MeshCore 发送图片",
"chat_imagePickFailed": "无法打开该图片", "chat_imagePickFailed": "无法打开该图片",
"chat_receivedGif": "收到一个GIF", "chat_receivedGif": "收到一个GIF",
"repeater_keySettings": "更改身份密钥", "repeater_keySettings": "更改身份密钥",
+29 -5
View File
@@ -50,7 +50,7 @@ class ChannelMessage {
final String? replyToMessageId; final String? replyToMessageId;
final String? replyToSenderName; final String? replyToSenderName;
final String? replyToText; final String? replyToText;
final Map<String, int> reactions; final Map<String, List<String?>> reactions;
ChannelMessage({ ChannelMessage({
this.senderKey, this.senderKey,
@@ -76,7 +76,7 @@ class ChannelMessage {
this.replyToMessageId, this.replyToMessageId,
this.replyToSenderName, this.replyToSenderName,
this.replyToText, this.replyToText,
Map<String, int>? reactions, Map<String, List<String?>>? reactions,
}) : messageId = }) : messageId =
messageId ?? messageId ??
'${timestamp.millisecondsSinceEpoch}_${senderName.hashCode}_${text.hashCode}', '${timestamp.millisecondsSinceEpoch}_${senderName.hashCode}_${text.hashCode}',
@@ -107,7 +107,7 @@ class ChannelMessage {
Object? translatedLanguageCode = _unset, Object? translatedLanguageCode = _unset,
MessageTranslationStatus? translationStatus, MessageTranslationStatus? translationStatus,
Object? translationModelId = _unset, Object? translationModelId = _unset,
Map<String, int>? reactions, Map<String, List<String?>>? reactions,
}) { }) {
return ChannelMessage( return ChannelMessage(
senderKey: senderKey, senderKey: senderKey,
@@ -297,8 +297,32 @@ class ChannelMessage {
); );
} }
static ReactionInfo? parseReaction(String text) { ReactionInfo? parseReaction() {
return ReactionHelper.parseReaction(text); final reactionInfo = ReactionHelper.parseReaction(text);
reactionInfo?.senderName = senderName;
return reactionInfo;
}
String computeReactionHash() {
return ReactionHelper.computeReactionHash(
timestamp.millisecondsSinceEpoch ~/ 1000,
senderName,
text,
);
}
List<ReactionInfo> reactionList() {
final String hash = computeReactionHash();
List<ReactionInfo> reactionList = [];
for (final entry in reactions.entries) {
final emoji = entry.key;
for (final senderName in entry.value) {
reactionList.add(
ReactionInfo(targetHash: hash, emoji: emoji, senderName: senderName),
);
}
}
return reactionList;
} }
} }
+4 -4
View File
@@ -8,7 +8,7 @@ enum MessageStatus { pending, sent, delivered, failed }
class Message { class Message {
static const Object _unset = Object(); static const Object _unset = Object();
final Uint8List senderKey; final Uint8List senderKey; // For outgoing msgs, gets used as recipientKey
final String text; final String text;
final DateTime timestamp; final DateTime timestamp;
final bool isOutgoing; final bool isOutgoing;
@@ -30,7 +30,7 @@ class Message {
final int? tripTimeMs; final int? tripTimeMs;
final int? pathLength; final int? pathLength;
final Uint8List pathBytes; final Uint8List pathBytes;
final Map<String, int> reactions; final Map<String, List<String?>> reactions;
final Map<String, MessageStatus> reactionStatuses; final Map<String, MessageStatus> reactionStatuses;
final Uint8List fourByteRoomContactKey; final Uint8List fourByteRoomContactKey;
@@ -56,7 +56,7 @@ class Message {
this.pathLength, this.pathLength,
Uint8List? pathBytes, Uint8List? pathBytes,
Uint8List? fourByteRoomContactKey, Uint8List? fourByteRoomContactKey,
Map<String, int>? reactions, Map<String, List<String?>>? reactions,
Map<String, MessageStatus>? reactionStatuses, Map<String, MessageStatus>? reactionStatuses,
}) : messageId = }) : messageId =
messageId ?? messageId ??
@@ -84,7 +84,7 @@ class Message {
Object? translatedLanguageCode = _unset, Object? translatedLanguageCode = _unset,
MessageTranslationStatus? translationStatus, MessageTranslationStatus? translationStatus,
Object? translationModelId = _unset, Object? translationModelId = _unset,
Map<String, int>? reactions, Map<String, List<String?>>? reactions,
Map<String, MessageStatus>? reactionStatuses, Map<String, MessageStatus>? reactionStatuses,
Uint8List? fourByteRoomContactKey, Uint8List? fourByteRoomContactKey,
}) { }) {
+159 -72
View File
@@ -42,7 +42,6 @@ import '../widgets/emoji_picker.dart';
import '../widgets/gif_message.dart'; import '../widgets/gif_message.dart';
import '../widgets/jump_to_bottom_button.dart'; import '../widgets/jump_to_bottom_button.dart';
import '../widgets/gif_picker.dart'; import '../widgets/gif_picker.dart';
import '../widgets/image_send_button.dart';
import '../widgets/image_send_codec_binding.dart'; import '../widgets/image_send_codec_binding.dart';
import '../widgets/image_send_preview_sheet.dart'; import '../widgets/image_send_preview_sheet.dart';
import '../widgets/message_translation_button.dart'; import '../widgets/message_translation_button.dart';
@@ -533,7 +532,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
}, },
), ),
), ),
_buildMessageComposer(), _buildInputBar(),
], ],
), ),
), ),
@@ -1048,7 +1047,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
runSpacing: 6, runSpacing: 6,
children: message.reactions.entries.map((entry) { children: message.reactions.entries.map((entry) {
final emoji = entry.key; final emoji = entry.key;
final count = entry.value; final int count = entry.value.length;
return Container( return Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
@@ -1057,35 +1056,97 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
borderRadius: BorderRadius.circular(MeshRadii.pill), borderRadius: BorderRadius.circular(MeshRadii.pill),
border: Border.all(color: scheme.outlineVariant, width: 1), border: Border.all(color: scheme.outlineVariant, width: 1),
), ),
child: Row( child: InkWell(
mainAxisSize: MainAxisSize.min, onTap: () => _showReactionsReport(message),
children: [ child: Row(
Text( mainAxisSize: MainAxisSize.min,
emoji, children: [
style: MeshTheme.emoji(fontSize: 16),
textHeightBehavior: const TextHeightBehavior(
applyHeightToFirstAscent: false,
applyHeightToLastDescent: false,
),
),
if (count > 1) ...[
const SizedBox(width: 4),
Text( Text(
'$count', emoji,
style: MeshTheme.mono( style: MeshTheme.emoji(fontSize: 16),
fontSize: 11, textHeightBehavior: const TextHeightBehavior(
fontWeight: FontWeight.w700, applyHeightToFirstAscent: false,
color: scheme.onSurface, applyHeightToLastDescent: false,
), ),
), ),
if (count > 1) ...[
const SizedBox(width: 4),
Text(
'$count',
style: MeshTheme.mono(
fontSize: 11,
fontWeight: FontWeight.w700,
color: scheme.onSurface,
),
),
],
], ],
], ),
), ),
); );
}).toList(), }).toList(),
); );
} }
void _showReactionsReport(ChannelMessage message) {
final scheme = Theme.of(context).colorScheme;
showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text(context.l10n.reaction_report),
content: SizedBox(
width: double.maxFinite,
child: Scrollbar(
child: ListView(
shrinkWrap: true,
padding: const EdgeInsets.symmetric(vertical: 4),
children: message.reactionList().map((reaction) {
return Container(
padding: const EdgeInsetsDirectional.symmetric(vertical: 4),
child: Container(
padding: const EdgeInsets.symmetric(
horizontal: 8,
vertical: 4,
),
decoration: BoxDecoration(
color: scheme.surfaceContainerHigh,
borderRadius: BorderRadius.circular(MeshRadii.pill),
border: Border.all(
color: scheme.outlineVariant,
width: 1,
),
),
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 8,
vertical: 4,
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
reaction.emoji,
style: MeshTheme.emoji(fontSize: 16),
textHeightBehavior: const TextHeightBehavior(
applyHeightToFirstAscent: false,
applyHeightToLastDescent: false,
),
),
const SizedBox(width: 12),
Expanded(child: Text(reaction.senderName ?? '???')),
],
),
),
),
);
}).toList(),
),
),
),
),
);
}
Widget _buildPoiMessage( Widget _buildPoiMessage(
BuildContext context, BuildContext context,
MarkerPayload poi, MarkerPayload poi,
@@ -1166,10 +1227,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
/// Whether the image codec model is currently downloading. /// Whether the image codec model is currently downloading.
/// ///
/// The image button must stay hidden while the model downloads: an encode /// This must be read while [context] is building; popup item builders run
/// cannot start until the weights are on disk, and the preview sheet would /// from an overlay and cannot listen to a provider.
/// have nothing to show but a spinner. bool _isImageCodecDownloading(BuildContext context) {
bool get _imageCodecDownloading {
try { try {
return context.watch<ImageCodecService>().isDownloading; return context.watch<ImageCodecService>().isDownloading;
} on ProviderNotFoundException { } on ProviderNotFoundException {
@@ -1690,41 +1750,84 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
); );
} }
Widget _buildMessageComposer() { Widget _buildInputBar() {
final connector = context.watch<MeshCoreConnector>(); final connector = context.watch<MeshCoreConnector>();
final maxBytes = maxChannelMessageBytes(connector.selfName); final maxBytes = maxChannelMessageBytes(connector.selfName);
final settings = context.watch<AppSettingsService>().settings; final settings = context.watch<AppSettingsService>().settings;
final imageCodecDownloading = _isImageCodecDownloading(context);
final showImageAction =
settings.imageMessagesEnabled && !imageCodecDownloading;
final scheme = Theme.of(context).colorScheme; final scheme = Theme.of(context).colorScheme;
return Column( return Container(
mainAxisSize: MainAxisSize.min, decoration: BoxDecoration(
children: [ color: scheme.surface,
if (_replyingToMessage != null) border: Border(top: BorderSide(color: scheme.outlineVariant, width: 1)),
Builder( ),
builder: (context) { child: SafeArea(
final textScale = context.select<ChatTextScaleService, double>( child: Column(
(service) => service.scale, mainAxisSize: MainAxisSize.min,
); children: [
return _buildReplyBanner(textScale); if (_replyingToMessage != null)
}, Builder(
), builder: (context) {
if (_imageSendTotal > 0) _buildImageSendProgress(scheme), final textScale = context
Container( .select<ChatTextScaleService, double>(
decoration: BoxDecoration( (service) => service.scale,
color: scheme.surface, );
border: Border( return _buildReplyBanner(textScale);
top: BorderSide(color: scheme.outlineVariant, width: 1), },
), ),
), if (_imageSendTotal > 0) _buildImageSendProgress(scheme),
child: SafeArea( Padding(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6), padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
IconButton( PopupMenuButton<String>(
icon: const Icon(Icons.gif_box), icon: const Icon(Icons.add_circle_outline),
onPressed: () => _showGifPicker(context), position: PopupMenuPosition.over,
tooltip: context.l10n.chat_sendGif, offset: Offset(0, showImageAction ? -112 : -64),
tooltip: context.l10n.chat_selectSendAction,
onSelected: (action) {
switch (action) {
case 'gif':
_showGifPicker(context);
break;
case 'meshcore-image':
_showImageSendPreview();
break;
}
},
itemBuilder: (context) => [
PopupMenuItem(
value: 'gif',
child: Row(
children: [
const Icon(Icons.gif_box),
const SizedBox(width: 12),
Text(context.l10n.chat_sendGif),
],
),
),
if (showImageAction)
PopupMenuItem(
value: 'meshcore-image',
// Gated on the codec, not just the setting. The preview
// sheet explains why a send is impossible, but a fully
// live button in a build that cannot encode invites the
// tap that produces that explanation.
enabled:
_imageCodec?.availability ==
ImageCodecAvailability.ready,
child: Row(
children: [
const Icon(Icons.image_outlined),
const SizedBox(width: 12),
Text(context.l10n.chat_sendImageLora),
],
),
),
],
), ),
if (settings.translationEnabled) if (settings.translationEnabled)
MessageTranslationButton( MessageTranslationButton(
@@ -1732,17 +1835,6 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
languageCode: settings.translationTargetLanguageCode, languageCode: settings.translationTargetLanguageCode,
onPressed: _showTranslationOptions, onPressed: _showTranslationOptions,
), ),
if (settings.imageMessagesEnabled && !_imageCodecDownloading)
ImageSendButton(
// Gated on the codec, not just the setting. The preview
// sheet explains why a send is impossible, but a fully
// live button in a build that cannot encode invites the
// tap that produces that explanation.
enabled:
_imageCodec?.availability ==
ImageCodecAvailability.ready,
onPressed: () => _showImageSendPreview(),
),
Expanded( Expanded(
child: ValueListenableBuilder<TextEditingValue>( child: ValueListenableBuilder<TextEditingValue>(
valueListenable: _textController, valueListenable: _textController,
@@ -1874,9 +1966,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
], ],
), ),
), ),
), ],
), ),
], ),
); );
} }
@@ -2124,12 +2216,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
final connector = context.read<MeshCoreConnector>(); final connector = context.read<MeshCoreConnector>();
final emojiIndex = ReactionHelper.emojiToIndex(emoji); final emojiIndex = ReactionHelper.emojiToIndex(emoji);
if (emojiIndex == null) return; // Unknown emoji, skip if (emojiIndex == null) return; // Unknown emoji, skip
final timestampSecs = message.timestamp.millisecondsSinceEpoch ~/ 1000; final hash = message.computeReactionHash();
final hash = ReactionHelper.computeReactionHash(
timestampSecs,
message.senderName,
message.text,
);
final reactionText = ReactionHelper.encodeReaction(hash, emojiIndex); final reactionText = ReactionHelper.encodeReaction(hash, emojiIndex);
connector.sendChannelMessage(widget.channel, reactionText); connector.sendChannelMessage(widget.channel, reactionText);
} }
+23 -5
View File
@@ -7,6 +7,7 @@ import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../utils/app_logger.dart';
import '../utils/platform_info.dart'; import '../utils/platform_info.dart';
import '../connector/meshcore_connector.dart'; import '../connector/meshcore_connector.dart';
@@ -478,10 +479,26 @@ class _ChatScreenState extends State<ChatScreen> {
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
IconButton( PopupMenuButton<String>(
icon: const Icon(Icons.gif_box), icon: const Icon(Icons.add_circle_outline),
onPressed: () => _showGifPicker(context), position: PopupMenuPosition.over,
tooltip: context.l10n.chat_sendGif, offset: const Offset(0, -64),
tooltip: context.l10n.chat_selectSendAction,
onSelected: (action) {
if (action == 'gif') _showGifPicker(context);
},
itemBuilder: (context) => [
PopupMenuItem(
value: 'gif',
child: Row(
children: [
const Icon(Icons.gif_box),
const SizedBox(width: 12),
Text(context.l10n.chat_sendGif),
],
),
),
],
), ),
if (settings.translationEnabled) if (settings.translationEnabled)
MessageTranslationButton( MessageTranslationButton(
@@ -1298,6 +1315,7 @@ class _ChatScreenState extends State<ChatScreen> {
final senderName = liveContact.type == advTypeRoom final senderName = liveContact.type == advTypeRoom
? senderContact.name ? senderContact.name
: null; : null;
appLogger.info('Sending reaction using senderName: $senderName');
final hash = ReactionHelper.computeReactionHash( final hash = ReactionHelper.computeReactionHash(
timestampSecs, timestampSecs,
senderName, senderName,
@@ -1747,7 +1765,7 @@ class _MessageBubble extends StatelessWidget {
runSpacing: 6, runSpacing: 6,
children: message.reactions.entries.map((entry) { children: message.reactions.entries.map((entry) {
final emoji = entry.key; final emoji = entry.key;
final count = entry.value; final count = entry.value.length;
final status = message.reactionStatuses[emoji]; final status = message.reactionStatuses[emoji];
final isPending = final isPending =
status == MessageStatus.pending || status == MessageStatus.sent; status == MessageStatus.pending || status == MessageStatus.sent;
+6 -1
View File
@@ -195,7 +195,12 @@ class ChannelMessageStore {
replyToText: json['replyToText'] as String?, replyToText: json['replyToText'] as String?,
reactions: reactions:
(json['reactions'] as Map<String, dynamic>?)?.map( (json['reactions'] as Map<String, dynamic>?)?.map(
(key, value) => MapEntry(key, value as int), (key, value) => MapEntry(
key,
(value is int)
? List<String?>.filled(value, null)
: List<String?>.from(value),
),
) ?? ) ??
{}, {},
); );
+6 -1
View File
@@ -171,7 +171,12 @@ class MessageStore {
pathBytes: decodedPathBytes, pathBytes: decodedPathBytes,
reactions: reactions:
(json['reactions'] as Map<String, dynamic>?)?.map( (json['reactions'] as Map<String, dynamic>?)?.map(
(key, value) => MapEntry(key, value as int), (key, value) => MapEntry(
key,
(value is int)
? List<String?>.filled(value, null)
: List<String?>.from(value),
),
) ?? ) ??
{}, {},
reactionStatuses: reactionStatuses:
-25
View File
@@ -1,25 +0,0 @@
import 'package:flutter/material.dart';
import '../l10n/l10n.dart';
class ImageSendButton extends StatelessWidget {
final bool enabled;
final VoidCallback onPressed;
final String? tooltip;
const ImageSendButton({
super.key,
required this.enabled,
required this.onPressed,
this.tooltip,
});
@override
Widget build(BuildContext context) {
return IconButton(
icon: Icon(enabled ? Icons.image : Icons.image_outlined),
onPressed: enabled ? onPressed : null,
tooltip: tooltip ?? context.l10n.chat_sendImage,
);
}
}
+1 -81
View File
@@ -1,81 +1 @@
{ {}
"bg": [
"urlImage_enable",
"urlImage_possible"
],
"es": [
"urlImage_enable",
"urlImage_possible"
],
"fr": [
"urlImage_enable",
"urlImage_possible"
],
"hu": [
"urlImage_enable",
"urlImage_possible"
],
"it": [
"urlImage_enable",
"urlImage_possible"
],
"ja": [
"urlImage_enable",
"urlImage_possible"
],
"ko": [
"urlImage_enable",
"urlImage_possible"
],
"nl": [
"urlImage_enable",
"urlImage_possible"
],
"pl": [
"urlImage_enable",
"urlImage_possible"
],
"pt": [
"urlImage_enable",
"urlImage_possible"
],
"ru": [
"urlImage_enable",
"urlImage_possible"
],
"sk": [
"urlImage_enable",
"urlImage_possible"
],
"sl": [
"urlImage_enable",
"urlImage_possible"
],
"sv": [
"urlImage_enable",
"urlImage_possible"
],
"uk": [
"urlImage_enable",
"urlImage_possible"
],
"zh": [
"urlImage_enable",
"urlImage_possible"
]
}