mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-20 13:11:31 +00:00
Fix constant group update notifications being shown
This commit is contained in:
parent
9d8de789d7
commit
c738f810b5
@ -63,6 +63,16 @@ public class GroupManager {
|
|||||||
memberAddresses.add(Address.fromSerialized(TextSecurePreferences.getLocalNumber(context)));
|
memberAddresses.add(Address.fromSerialized(TextSecurePreferences.getLocalNumber(context)));
|
||||||
groupDatabase.create(groupId, name, new LinkedList<>(memberAddresses), null, null);
|
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) {
|
if (!mms) {
|
||||||
groupDatabase.updateAvatar(groupId, avatarBytes);
|
groupDatabase.updateAvatar(groupId, avatarBytes);
|
||||||
DatabaseFactory.getRecipientDatabase(context).setProfileSharing(groupRecipient, true);
|
DatabaseFactory.getRecipientDatabase(context).setProfileSharing(groupRecipient, true);
|
||||||
@ -71,6 +81,7 @@ public class GroupManager {
|
|||||||
long threadId = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(groupRecipient, ThreadDatabase.DistributionTypes.CONVERSATION);
|
long threadId = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(groupRecipient, ThreadDatabase.DistributionTypes.CONVERSATION);
|
||||||
return new GroupActionResult(groupRecipient, threadId);
|
return new GroupActionResult(groupRecipient, threadId);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GroupActionResult updateGroup(@NonNull Context context,
|
public static GroupActionResult updateGroup(@NonNull Context context,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user