feat: Add recent messages overlay to map in fullscreen mode and update localization for recent messages

This commit is contained in:
Janez T
2025-10-28 00:14:14 +01:00
parent f6155913a1
commit b980fb80f1
21 changed files with 370 additions and 23 deletions

View File

@@ -88,11 +88,16 @@ class MapMarkerService {
],
),
padding: const EdgeInsets.all(6),
child: Icon(
getContactMarkerIcon(contact),
color: Colors.white,
size: 18,
),
child: contact.roleEmoji != null
? Text(
contact.roleEmoji!,
style: const TextStyle(fontSize: 18),
)
: Icon(
getContactMarkerIcon(contact),
color: Colors.white,
size: 18,
),
),
const SizedBox(height: 2),
// Name label (without emoji)

View File

@@ -1,3 +1,4 @@
import 'dart:convert';
import 'dart:typed_data';
import '../../models/contact.dart';
import '../../models/message.dart';
@@ -248,7 +249,7 @@ class FrameParser {
String? selfName;
if (reader.hasRemaining) {
final nameBytes = reader.readRemainingBytes();
selfName = String.fromCharCodes(nameBytes.takeWhile((b) => b != 0));
selfName = utf8.decode(nameBytes.takeWhile((b) => b != 0).toList());
}
return {