Add self to MMS group.

- Fixes #7683
- Closes #8296
This commit is contained in:
Alan Evans 2019-03-25 17:23:08 -03:00
parent 94e8303022
commit 6a0a419f0c

View File

@ -343,6 +343,7 @@ public class GroupCreateActivity extends PassphraseRequiredActionBarActivity
for (Recipient recipient : members) { for (Recipient recipient : members) {
memberAddresses.add(recipient.getAddress()); memberAddresses.add(recipient.getAddress());
} }
memberAddresses.add(Address.fromSerialized(TextSecurePreferences.getLocalNumber(activity)));
String groupId = DatabaseFactory.getGroupDatabase(activity).getOrCreateGroupForMembers(memberAddresses, true); String groupId = DatabaseFactory.getGroupDatabase(activity).getOrCreateGroupForMembers(memberAddresses, true);
Recipient groupRecipient = Recipient.from(activity, Address.fromSerialized(groupId), true); Recipient groupRecipient = Recipient.from(activity, Address.fromSerialized(groupId), true);