mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 19:45:20 +00:00
Implement indefinite store-and-forward for favorite peers
- Change message cache timeout from 5 minutes to 12 hours for regular peers - Add indefinite message storage for favorite peers with 1000 message limit - Cache relayed messages for offline favorites - Automatically send cached messages when favorites come online - Use public key fingerprints to identify favorites persistently - Add isFavorite delegate method to check favorites by fingerprint
This commit is contained in:
@@ -92,4 +92,7 @@ protocol BitchatDelegate: AnyObject {
|
||||
func didConnectToPeer(_ peerID: String)
|
||||
func didDisconnectFromPeer(_ peerID: String)
|
||||
func didUpdatePeerList(_ peers: [String])
|
||||
|
||||
// Optional method to check if a fingerprint belongs to a favorite peer
|
||||
@objc optional func isFavorite(fingerprint: String) -> Bool
|
||||
}
|
||||
Reference in New Issue
Block a user