mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 18:08:05 +01:00
Blocking/Unblocking improvements for message requests
This commit is contained in:
@@ -2101,18 +2101,10 @@
|
||||
}
|
||||
|
||||
if (typeof details.blocked !== 'undefined') {
|
||||
const e164 = conversation.get('e164');
|
||||
if (details.blocked && e164) {
|
||||
storage.addBlockedNumber(e164);
|
||||
if (details.blocked) {
|
||||
conversation.block();
|
||||
} else {
|
||||
storage.removeBlockedNumber(e164);
|
||||
}
|
||||
|
||||
const uuid = conversation.get('uuid');
|
||||
if (details.blocked && uuid) {
|
||||
storage.addBlockedUuid(uuid);
|
||||
} else {
|
||||
storage.removeBlockedUuid(uuid);
|
||||
conversation.unblock();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2233,9 +2225,9 @@
|
||||
}
|
||||
|
||||
if (details.blocked) {
|
||||
storage.addBlockedGroup(id);
|
||||
conversation.block();
|
||||
} else {
|
||||
storage.removeBlockedGroup(id);
|
||||
conversation.unblock();
|
||||
}
|
||||
|
||||
conversation.set(updates);
|
||||
|
||||
Reference in New Issue
Block a user