Fix delivery receipts in group messages.
Fixes #2056 Fixes #2067 Fixes #2087
This commit is contained in:
parent
71fdaac1b2
commit
baaa3514d4
2 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class MediaMmsMessageRecord extends MessageRecord {
|
||||||
int partCount, long mailbox)
|
int partCount, long mailbox)
|
||||||
{
|
{
|
||||||
super(context, id, body, recipients, individualRecipient, recipientDeviceId,
|
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.context = context.getApplicationContext();
|
||||||
this.partCount = partCount;
|
this.partCount = partCount;
|
||||||
|
|
|
@ -255,6 +255,10 @@ public class MessageSender {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (recipients.isGroupRecipient()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
String e164number = Util.canonicalizeNumber(context, recipients.getPrimaryRecipient().getNumber());
|
String e164number = Util.canonicalizeNumber(context, recipients.getPrimaryRecipient().getNumber());
|
||||||
return TextSecurePreferences.getLocalNumber(context).equals(e164number);
|
return TextSecurePreferences.getLocalNumber(context).equals(e164number);
|
||||||
} catch (InvalidNumberException e) {
|
} catch (InvalidNumberException e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue