include old avatar and expireTimer on groupUpdate

pull/1223/head
Audric Ackermann 5 years ago
parent 809b4d9461
commit ed48818867
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -626,23 +626,25 @@
window.doUpdateGroup = async (groupId, groupName, members, avatar) => {
const ourKey = textsecure.storage.user.getNumber();
const convo = await ConversationController.getOrCreateAndWait(
groupId,
'group'
);
const ev = {
groupDetails: {
id: groupId,
name: groupName,
members,
active: true,
expireTimer: 0,
avatar: '',
expireTimer: convo.get('expireTimer'),
avatar,
is_medium_group: false,
},
confirm: () => {},
};
const convo = await ConversationController.getOrCreateAndWait(
groupId,
'group'
);
const recipients = _.union(convo.get('members'), members);

@ -222,7 +222,7 @@ export class SessionGroupSettings extends React.Component<Props, any> {
const leaveGroupString = isPublic
? window.i18n('leaveOpenGroup')
: isKickedFromGroup
? window.i18n('youGotKickedFromThisGroup')
? window.i18n('youGotKickedFromGroup')
: window.i18n('leaveClosedGroup');
const disappearingMessagesOptions = timerOptions.map(option => {

@ -66,6 +66,8 @@ export abstract class ClosedGroupUpdateMessage extends ClosedGroupMessage {
groupContext.admins = this.admins;
}
groupContext.avatar = this.avatar;
return groupContext;
}
}

Loading…
Cancel
Save