Implement proper room leave notifications and improve UI

- Send leave notifications when users exit rooms
- Update room member lists when peers leave rooms
- Change current user icon from dot to person.fill
- Handle room-specific leave messages via protocol
- Maintain backwards compatibility for general peer disconnection
This commit is contained in:
jack
2025-07-05 19:35:37 +02:00
parent cdb93543ba
commit 4dec23e216
4 changed files with 79 additions and 23 deletions
+2 -2
View File
@@ -644,8 +644,8 @@ struct ContentView: View {
HStack(spacing: 8) {
// Signal strength indicator or unread message icon
if isMe {
Text("")
.font(.system(size: 12))
Image(systemName: "person.fill")
.font(.system(size: 10))
.foregroundColor(textColor)
} else if viewModel.unreadPrivateMessages.contains(peerID) {
Image(systemName: "envelope.fill")