Support for blocking groups on mobile, via group/blocked syncs
This commit is contained in:
parent
cfe561b3eb
commit
9c399624cc
8 changed files with 89 additions and 15 deletions
|
@ -802,6 +802,7 @@
|
|||
}
|
||||
function onConfiguration(ev) {
|
||||
storage.put('read-receipt-setting', ev.configuration.readReceipts);
|
||||
ev.confirm();
|
||||
}
|
||||
|
||||
async function onContactReceived(ev) {
|
||||
|
@ -919,6 +920,12 @@
|
|||
updates.left = true;
|
||||
}
|
||||
|
||||
if (details.blocked === true) {
|
||||
storage.addBlockedGroup(id);
|
||||
} else if (details.blocked === false) {
|
||||
storage.removeBlockedGroup(id);
|
||||
}
|
||||
|
||||
await wrapDeferred(conversation.save(updates));
|
||||
const { expireTimer } = details;
|
||||
const isValidExpireTimer = typeof expireTimer === 'number';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue