mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 04:25:22 +00:00
fix teleport tag and icons (#303)
This commit is contained in:
@@ -99,7 +99,8 @@ object NostrProtocol {
|
||||
content: String,
|
||||
geohash: String,
|
||||
senderIdentity: NostrIdentity,
|
||||
nickname: String? = null
|
||||
nickname: String? = null,
|
||||
teleported: Boolean = false
|
||||
): NostrEvent {
|
||||
val tags = mutableListOf<List<String>>()
|
||||
tags.add(listOf("g", geohash))
|
||||
@@ -108,6 +109,11 @@ object NostrProtocol {
|
||||
tags.add(listOf("n", nickname))
|
||||
}
|
||||
|
||||
if (teleported) {
|
||||
// Use tag consistent with event handlers ("t","teleport")
|
||||
tags.add(listOf("t", "teleport"))
|
||||
}
|
||||
|
||||
val event = NostrEvent(
|
||||
pubkey = senderIdentity.publicKeyHex,
|
||||
createdAt = (System.currentTimeMillis() / 1000).toInt(),
|
||||
|
||||
Reference in New Issue
Block a user