mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 12:25:22 +00:00
Fix compilation errors and warnings
- Fix redundant underscore warnings in NoiseSession.swift - Replace non-existent handlePeerDisconnection with proper cleanup code - Remove invalid showSystemMessage call, use didDisconnectFromPeer instead - Clean up peer state when version negotiation fails The project now builds successfully for iOS with only minor warnings about metadata extraction for app intents (which can be ignored).
This commit is contained in:
@@ -254,13 +254,13 @@ class NoiseSessionManager {
|
||||
}
|
||||
|
||||
func removeSession(for peerID: String) {
|
||||
_ = managerQueue.sync(flags: .barrier) {
|
||||
managerQueue.sync(flags: .barrier) {
|
||||
sessions.removeValue(forKey: peerID)
|
||||
}
|
||||
}
|
||||
|
||||
func migrateSession(from oldPeerID: String, to newPeerID: String) {
|
||||
_ = managerQueue.sync(flags: .barrier) {
|
||||
managerQueue.sync(flags: .barrier) {
|
||||
// Check if we have a session for the old peer ID
|
||||
if let session = sessions[oldPeerID] {
|
||||
// Move the session to the new peer ID
|
||||
|
||||
Reference in New Issue
Block a user