refactor mesh core

This commit is contained in:
callebtc
2026-01-04 14:05:14 +07:00
parent 23e7e12e9e
commit 7d6a581544
10 changed files with 1222 additions and 1513 deletions
@@ -130,7 +130,7 @@ class MessageRouter private constructor(
val myNpub = try { com.bitchat.android.nostr.NostrIdentityBridge.getCurrentNostrIdentity(context)?.npub } catch (_: Exception) { null }
val content = if (isFavorite) "[FAVORITED]:${myNpub ?: ""}" else "[UNFAVORITED]:${myNpub ?: ""}"
val nickname = mesh.getPeerNicknames()[toPeerID] ?: toPeerID
mesh.sendPrivateMessage(content, toPeerID, nickname)
mesh.sendPrivateMessage(content, toPeerID, nickname, null)
} else {
nostr.sendFavoriteNotification(toPeerID, isFavorite)
}