mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 14:22:37 +00:00
Fix sync message sending.
This commit is contained in:
@@ -127,15 +127,6 @@ fun signAndSendPairingAuthorisationMessage(context: Context, pairingAuthorisatio
|
||||
|
||||
}
|
||||
|
||||
fun shouldSendSycMessage(context: Context, address: Address): Promise<Boolean, Exception> {
|
||||
if (address.isGroup || address.isEmail || address.isMmsGroup) {
|
||||
return Promise.of(false)
|
||||
}
|
||||
|
||||
// Don't send sync messages if it's one of our devices
|
||||
return isOneOfOurDevices(context, address).map { !it }
|
||||
}
|
||||
|
||||
fun isOneOfOurDevices(context: Context, address: Address): Promise<Boolean, Exception> {
|
||||
if (address.isGroup || address.isEmail || address.isMmsGroup) {
|
||||
return Promise.of(false)
|
||||
|
||||
Reference in New Issue
Block a user