mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 17:25:20 +00:00
Implement favorites, notifications, and improve fragment handling
- Add favorites functionality for peers with persistent storage - Star icon to toggle favorites in sidebar - Favorites appear at top of peer list - Storage persists across app launches using peer ID - Add local notifications for mentions and private messages - Notifications appear when app is in background - Separate notification types for mentions vs private messages - Request notification permissions on app launch - Fix sidebar header alignment to match main toolbar (44pt) - Add background color to sidebar header for visual consistency - Improve voice note fragment transmission - Send fragments in batches of 5 with delays to prevent congestion - Better logging to debug fragment transmission issues - Reduce delay between fragments from 50ms to batch-based timing - Fix other UI issues - Ensure mic recording ripples originate from mic button - Update sidebar to swipe from right edge smoothly
This commit is contained in:
@@ -11,6 +11,9 @@ enum MessageType: UInt8 {
|
||||
case leave = 0x07
|
||||
case privateMessage = 0x08
|
||||
case voiceNote = 0x09
|
||||
case fragmentStart = 0x0A // First fragment of a large message
|
||||
case fragmentContinue = 0x0B // Continuation fragment
|
||||
case fragmentEnd = 0x0C // Last fragment
|
||||
}
|
||||
|
||||
struct BitchatPacket: Codable {
|
||||
|
||||
Reference in New Issue
Block a user