remove unused addBlockedGroup function since we moved to controller

for blocked group
pull/1250/head
Audric Ackermann 5 years ago
parent 8d544a9d87
commit 66697bc235
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -47,15 +47,6 @@
return _.include(groupIds, groupId);
};
storage.addBlockedGroup = groupId => {
const groupIds = storage.get(BLOCKED_GROUPS_ID, []);
if (_.include(groupIds, groupId)) {
return;
}
window.log.info(`adding groupId(${groupId}) to blocked list`);
storage.put(BLOCKED_GROUPS_ID, groupIds.concat(groupId));
};
storage.removeBlockedGroup = groupId => {
const groupIds = storage.get(BLOCKED_GROUPS_ID, []);
if (!_.include(groupIds, groupId)) {

@ -189,12 +189,6 @@ export async function onGroupReceived(details: GroupInfo) {
updates.left = true;
}
if (details.blocked) {
storage.addBlockedGroup(id);
} else {
storage.removeBlockedGroup(id);
}
conversation.set(updates);
// Update the conversation avatar only if new avatar exists and hash differs

Loading…
Cancel
Save