|
|
|
@ -63,6 +63,16 @@ public class GroupManager {
|
|
|
|
|
memberAddresses.add(Address.fromSerialized(TextSecurePreferences.getLocalNumber(context)));
|
|
|
|
|
groupDatabase.create(groupId, name, new LinkedList<>(memberAddresses), null, null);
|
|
|
|
|
|
|
|
|
|
if (!mms) {
|
|
|
|
|
groupDatabase.updateAvatar(groupId, avatarBytes);
|
|
|
|
|
DatabaseFactory.getRecipientDatabase(context).setProfileSharing(groupRecipient, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
long threadId = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(groupRecipient, ThreadDatabase.DistributionTypes.CONVERSATION);
|
|
|
|
|
return new GroupActionResult(groupRecipient, threadId);
|
|
|
|
|
|
|
|
|
|
/* Loki: Original Code
|
|
|
|
|
==================
|
|
|
|
|
if (!mms) {
|
|
|
|
|
groupDatabase.updateAvatar(groupId, avatarBytes);
|
|
|
|
|
DatabaseFactory.getRecipientDatabase(context).setProfileSharing(groupRecipient, true);
|
|
|
|
@ -71,6 +81,7 @@ public class GroupManager {
|
|
|
|
|
long threadId = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(groupRecipient, ThreadDatabase.DistributionTypes.CONVERSATION);
|
|
|
|
|
return new GroupActionResult(groupRecipient, threadId);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static GroupActionResult updateGroup(@NonNull Context context,
|
|
|
|
|