Fix sync message sending.

This commit is contained in:
Mikunj
2019-11-06 16:08:20 +11:00
parent ed6ca6a64a
commit 96fa96f5c1
2 changed files with 7 additions and 26 deletions

View File

@@ -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)