mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 12:06:12 +00:00
Fix group name clearing after avatar change.
This commit is contained in:
committed by
Greyson Parrelli
parent
8dbcb255ad
commit
d8f3e032c7
@@ -68,12 +68,13 @@ public final class GroupManager {
|
||||
@NonNull GroupId groupId,
|
||||
@Nullable byte[] avatar,
|
||||
boolean avatarChanged,
|
||||
@Nullable String name)
|
||||
@NonNull String name,
|
||||
boolean nameChanged)
|
||||
throws GroupChangeFailedException, GroupInsufficientRightsException, IOException, GroupNotAMemberException, GroupChangeBusyException
|
||||
{
|
||||
if (groupId.isV2()) {
|
||||
try (GroupManagerV2.GroupEditor edit = new GroupManagerV2(context).edit(groupId.requireV2())) {
|
||||
return edit.updateGroupTitleAndAvatar(name, avatar, avatarChanged);
|
||||
return edit.updateGroupTitleAndAvatar(nameChanged ? name : null, avatar, avatarChanged);
|
||||
}
|
||||
} else {
|
||||
List<Recipient> members = DatabaseFactory.getGroupDatabase(context)
|
||||
|
||||
Reference in New Issue
Block a user