mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
fix: trigger redux state update manually when unblocking conversations
This commit is contained in:
parent
53c57efb89
commit
893b552ada
1 changed files with 8 additions and 0 deletions
|
@ -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…
Reference in a new issue