Skip to content

Commit

Permalink
Fix delivery receipts in group messages.
Browse files Browse the repository at this point in the history
Fixes #2056
Fixes #2067
Fixes #2087
  • Loading branch information
moxie0 committed Nov 12, 2014
1 parent 71fdaac commit baaa351
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public MediaMmsMessageRecord(Context context, long id, Recipients recipients,
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;
Expand Down
4 changes: 4 additions & 0 deletions src/org/thoughtcrime/securesms/sms/MessageSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ private static boolean isSelfSend(Context context, Recipients recipients) {
return false;
}

if (recipients.isGroupRecipient()) {
return false;
}

String e164number = Util.canonicalizeNumber(context, recipients.getPrimaryRecipient().getNumber());
return TextSecurePreferences.getLocalNumber(context).equals(e164number);
} catch (InvalidNumberException e) {
Expand Down

0 comments on commit baaa351

Please sign in to comment.