mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 17:53:39 +00:00
Fix crashes
This commit is contained in:
parent
acc8202d4f
commit
a742ecd574
@ -86,6 +86,7 @@ public class TypingStatusSender {
|
|||||||
// Loki - Check whether we want to send a typing indicator to this user
|
// Loki - Check whether we want to send a typing indicator to this user
|
||||||
if (recipient != null && !SessionMetaProtocol.shouldSendTypingIndicator(recipient.getAddress())) { return; }
|
if (recipient != null && !SessionMetaProtocol.shouldSendTypingIndicator(recipient.getAddress())) { return; }
|
||||||
// Loki - Take into account multi device
|
// Loki - Take into account multi device
|
||||||
|
if (recipient == null) { return; }
|
||||||
Set<String> linkedDevices = MultiDeviceProtocol.shared.getAllLinkedDevices(recipient.getAddress().serialize());
|
Set<String> linkedDevices = MultiDeviceProtocol.shared.getAllLinkedDevices(recipient.getAddress().serialize());
|
||||||
for (String device : linkedDevices) {
|
for (String device : linkedDevices) {
|
||||||
Recipient deviceAsRecipient = Recipient.from(context, Address.fromSerialized(device), false);
|
Recipient deviceAsRecipient = Recipient.from(context, Address.fromSerialized(device), false);
|
||||||
|
@ -1338,6 +1338,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
this.isDefaultSms = isDefaultSms;
|
this.isDefaultSms = isDefaultSms;
|
||||||
this.isSecurityInitialized = true;
|
this.isSecurityInitialized = true;
|
||||||
|
|
||||||
|
if (recipient == null || attachmentManager == null) { return; }
|
||||||
|
|
||||||
boolean isMediaMessage = recipient.isMmsGroupRecipient() || attachmentManager.isAttachmentPresent();
|
boolean isMediaMessage = recipient.isMmsGroupRecipient() || attachmentManager.isAttachmentPresent();
|
||||||
|
|
||||||
sendButton.resetAvailableTransports(isMediaMessage);
|
sendButton.resetAvailableTransports(isMediaMessage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user