Fixes global chat color setting
This commit is contained in:
parent
a6ce00ff37
commit
bd46e3afd6
14 changed files with 250 additions and 122 deletions
21
ts/shims/reloadSelectedConversation.ts
Normal file
21
ts/shims/reloadSelectedConversation.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function reloadSelectedConversation(): void {
|
||||
const { conversations } = window.reduxStore.getState();
|
||||
const { selectedConversationId } = conversations;
|
||||
if (!selectedConversationId) {
|
||||
return;
|
||||
}
|
||||
const conversation = window.ConversationController.get(
|
||||
selectedConversationId
|
||||
);
|
||||
if (!conversation) {
|
||||
return;
|
||||
}
|
||||
conversation.cachedProps = undefined;
|
||||
window.reduxActions.conversations.conversationChanged(
|
||||
conversation.id,
|
||||
conversation.format()
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue