mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Fix delivery receipts in group messages.
Fixes #2056 Fixes #2067 Fixes #2087
This commit is contained in:
parent
71fdaac1b2
commit
baaa3514d4
@ -55,7 +55,7 @@ public class MediaMmsMessageRecord extends MessageRecord {
|
||||
int partCount, long mailbox)
|
||||
{
|
||||
super(context, id, body, recipients, individualRecipient, recipientDeviceId,
|
||||
dateSent, dateReceived, threadId, deliveredCount, DELIVERY_STATUS_NONE, mailbox);
|
||||
dateSent, dateReceived, threadId, DELIVERY_STATUS_NONE, deliveredCount, mailbox);
|
||||
|
||||
this.context = context.getApplicationContext();
|
||||
this.partCount = partCount;
|
||||
|
@ -255,6 +255,10 @@ public class MessageSender {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (recipients.isGroupRecipient()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
String e164number = Util.canonicalizeNumber(context, recipients.getPrimaryRecipient().getNumber());
|
||||
return TextSecurePreferences.getLocalNumber(context).equals(e164number);
|
||||
} catch (InvalidNumberException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user