Merge pull request #2557 from Bilb/fix-unblock-does-not-refresh

fix: trigger redux state update manually when unblocking conversations
pull/2560/head
Audric Ackermann 3 years ago committed by GitHub
commit 7bd29e6217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,5 @@
import { Data } from '../data/data';
import { getConversationController } from '../session/conversations';
import { PubKey } from '../session/types';
import { UserUtils } from '../session/utils';
@ -105,6 +106,13 @@ export class BlockedNumberController {
}
});
users.map(user => {
const found = getConversationController().get(user);
if (found) {
found.triggerUIRefresh();
}
});
if (changes) {
await this.saveToDB(BLOCKED_NUMBERS_ID, this.blockedNumbers);
}

Loading…
Cancel
Save