Fix crashes

This commit is contained in:
nielsandriesse
2020-07-20 09:20:25 +10:00
parent acc8202d4f
commit a742ecd574
2 changed files with 3 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ public class TypingStatusSender {
// Loki - Check whether we want to send a typing indicator to this user
if (recipient != null && !SessionMetaProtocol.shouldSendTypingIndicator(recipient.getAddress())) { return; }
// Loki - Take into account multi device
if (recipient == null) { return; }
Set<String> linkedDevices = MultiDeviceProtocol.shared.getAllLinkedDevices(recipient.getAddress().serialize());
for (String device : linkedDevices) {
Recipient deviceAsRecipient = Recipient.from(context, Address.fromSerialized(device), false);