Skip to content

Commit 606f820

Browse files
Should Push for Push Notifications (#392)
* update bindings * testing np should-push commit fffe1edf * bump version * comment out --------- Co-authored-by: cameronvoell <cameronvoell@users.noreply.github.com>
1 parent f6a9c30 commit 606f820

File tree

12 files changed

+871
-2661
lines changed

12 files changed

+871
-2661
lines changed

example/src/main/java/org/xmtp/android/example/conversation/ConversationDetailViewModel.kt

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import org.xmtp.android.example.ClientManager
2020
import org.xmtp.android.example.extension.flowWhileShared
2121
import org.xmtp.android.example.extension.stateFlow
2222
import org.xmtp.android.library.Conversation
23-
import org.xmtp.android.library.libxmtp.Message
2423

2524
class ConversationDetailViewModel(private val savedStateHandle: SavedStateHandle) : ViewModel() {
2625

library/src/androidTest/java/org/xmtp/android/library/SignatureTest.kt

-38
This file was deleted.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 64d73712
1+
Version: 6bd613d6
22
Branch: main
3-
Date: 2025-02-25 00:36:02 +0000
3+
Date: 2025-03-06 14:52:58 +0000

library/src/main/java/org/xmtp/android/library/Dm.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,15 @@ class Dm(
208208
Log.w(
209209
"XMTP Dm stream",
210210
"Failed to decode message: id=${message.id.toHex()}, " +
211-
"convoId=${message.convoId.toHex()}, " +
211+
"convoId=${message.conversationId.toHex()}, " +
212212
"senderInboxId=${message.senderInboxId}"
213213
)
214214
}
215215
} catch (e: Exception) {
216216
Log.e(
217217
"XMTP Dm stream",
218218
"Error decoding message: id=${message.id.toHex()}, " +
219-
"convoId=${message.convoId.toHex()}, " +
219+
"convoId=${message.conversationId.toHex()}, " +
220220
"senderInboxId=${message.senderInboxId}",
221221
e
222222
)

library/src/main/java/org/xmtp/android/library/Group.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -435,15 +435,15 @@ class Group(
435435
Log.w(
436436
"XMTP Group stream",
437437
"Failed to decode message: id=${message.id.toHex()}, " +
438-
"convoId=${message.convoId.toHex()}, " +
438+
"convoId=${message.conversationId.toHex()}, " +
439439
"senderInboxId=${message.senderInboxId}"
440440
)
441441
}
442442
} catch (e: Exception) {
443443
Log.e(
444444
"XMTP Group stream",
445445
"Error decoding message: id=${message.id.toHex()}, " +
446-
"convoId=${message.convoId.toHex()}, " +
446+
"convoId=${message.conversationId.toHex()}, " +
447447
"senderInboxId=${message.senderInboxId}",
448448
e
449449
)

library/src/main/java/org/xmtp/android/library/libxmtp/Message.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Message private constructor(
3434
get() = libXMTPMessage.id.toHex()
3535

3636
val convoId: String
37-
get() = libXMTPMessage.convoId.toHex()
37+
get() = libXMTPMessage.conversationId.toHex()
3838

3939
val senderInboxId: String
4040
get() = libXMTPMessage.senderInboxId

library/src/main/java/org/xmtp/android/library/messages/Signature.kt

-15
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,6 @@ val Signature.rawDataWithNormalizedRecovery: ByteArray
5252
}
5353
return data
5454
}
55-
56-
@OptIn(ExperimentalUnsignedTypes::class)
57-
fun Signature.verify(signedBy: PublicKey, digest: ByteArray): Boolean {
58-
return try {
59-
uniffi.xmtpv3.verifyK256Sha256(
60-
signedBy.secp256K1Uncompressed.bytes.toByteArray(),
61-
digest,
62-
ecdsaCompact.bytes.toByteArray(),
63-
ecdsaCompact.recovery.toUByte()
64-
)
65-
} catch (e: Exception) {
66-
false
67-
}
68-
}
69-
7055
fun Signature.ensureWalletSignature(): Signature {
7156
return when (unionCase) {
7257
SignatureOuterClass.Signature.UnionCase.ECDSA_COMPACT -> {

0 commit comments

Comments
 (0)