Embedded Message: Apply peer colors in all tabs (#4016)

This commit is contained in:
Alexander Zinchuk 2023-12-04 14:38:42 +01:00
parent 4d70ae306d
commit 9ee146f083

View File

@ -44,10 +44,6 @@ addActionHandler('initShared', (prevGlobal, actions, payload): ActionReturnType
global.byTabId = prevGlobal.byTabId;
}
if (global.appConfig?.peerColors) {
updatePeerColors(global.appConfig.peerColors, global.appConfig.darkPeerColors);
}
return global;
});
@ -143,6 +139,10 @@ addActionHandler('init', (global, actions, payload): ActionReturnType => {
setGlobal(global);
});
if (global.appConfig?.peerColors) {
updatePeerColors(global.appConfig.peerColors, global.appConfig.darkPeerColors);
}
return updateTabState(global, {
messageLists: parsedMessageList ? [parsedMessageList] : initialTabState.messageLists,
}, tabId);