Fixprod crashes (#1028)

pull/1712/head
SessionHero01 2 weeks ago committed by GitHub
parent f7d1ddf714
commit 0b4a14313e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -79,8 +79,12 @@ class MarkReadReceiver : BroadcastReceiver() {
hashToDisappearAfterReadMessage(context, markedReadMessages)?.let { hashToMessages ->
GlobalScope.launch {
fetchUpdatedExpiriesAndScheduleDeletion(context, hashToMessages)
shortenExpiryOfDisappearingAfterRead(hashToMessages)
try {
fetchUpdatedExpiriesAndScheduleDeletion(context, hashToMessages)
shortenExpiryOfDisappearingAfterRead(hashToMessages)
} catch (e: Exception) {
Log.e(TAG, "Failed to fetch updated expiries and schedule deletion", e)
}
}
}
}

@ -45,6 +45,7 @@ import org.session.libsignal.protos.SignalServiceProtos
import org.session.libsignal.utilities.AccountId
import org.session.libsignal.utilities.Base64
import org.session.libsignal.utilities.IdPrefix
import org.session.libsignal.utilities.Log
import org.session.libsignal.utilities.Namespace
import org.session.libsignal.utilities.defaultRequiresAuth
import org.session.libsignal.utilities.hasNamespaces
@ -511,7 +512,11 @@ object MessageSender {
storage.markAsSyncing(timestamp, userPublicKey)
GlobalScope.launch {
sendToSnodeDestination(Destination.Contact(userPublicKey), message, true)
try {
sendToSnodeDestination(Destination.Contact(userPublicKey), message, true)
} catch (ec: Exception) {
Log.e("MessageSender", "Unable to send sync message", ec)
}
}
}
}

Loading…
Cancel
Save