mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-12 08:50:30 +00:00
fix: Prevent invalid map bounds #123
This commit is contained in:
@@ -735,7 +735,10 @@ class MessagesProvider with ChangeNotifier {
|
||||
}
|
||||
|
||||
if (message.isContactMessage) {
|
||||
return existing.senderKeyShort == message.senderKeyShort;
|
||||
// Match by sender key + sender timestamp (matches official app's DB
|
||||
// uniqueness: contactPublicKey + senderTimestamp + text + txtType).
|
||||
return existing.senderKeyShort == message.senderKeyShort &&
|
||||
existing.senderTimestamp == message.senderTimestamp;
|
||||
}
|
||||
|
||||
if (message.isChannelMessage) {
|
||||
|
||||
Reference in New Issue
Block a user