mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 18:25:21 +00:00
Fix store-and-forward duplicate message delivery and timestamp ordering
- Add tracking to prevent sending cached messages multiple times to the same peer - Only cache messages for offline favorites, not online ones - Sort messages by timestamp when adding to ensure proper chronological order - Clean up tracking sets when peers disconnect to allow re-sending on reconnect - Cache our own messages when sending to offline favorites - Update favorite online notification text to "wanna get in there?"
This commit is contained in:
@@ -76,7 +76,7 @@ class NotificationService {
|
||||
|
||||
func sendFavoriteOnlineNotification(nickname: String) {
|
||||
let title = "⭐ \(nickname) is online"
|
||||
let body = "Your favorite peer just joined the chat"
|
||||
let body = "wanna get in there?"
|
||||
let identifier = "favorite-online-\(UUID().uuidString)"
|
||||
|
||||
sendLocalNotification(title: title, body: body, identifier: identifier)
|
||||
|
||||
Reference in New Issue
Block a user