fix: trigger redux state update manually when unblocking conversations

This commit is contained in:
Audric Ackermann 2022-10-17 13:48:02 +11:00
parent 53c57efb89
commit 893b552ada

View file

@ -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);
}