Embedded Message: Apply peer colors in all tabs (#4016)
This commit is contained in:
parent
4d70ae306d
commit
9ee146f083
@ -44,10 +44,6 @@ addActionHandler('initShared', (prevGlobal, actions, payload): ActionReturnType
|
|||||||
global.byTabId = prevGlobal.byTabId;
|
global.byTabId = prevGlobal.byTabId;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (global.appConfig?.peerColors) {
|
|
||||||
updatePeerColors(global.appConfig.peerColors, global.appConfig.darkPeerColors);
|
|
||||||
}
|
|
||||||
|
|
||||||
return global;
|
return global;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -143,6 +139,10 @@ addActionHandler('init', (global, actions, payload): ActionReturnType => {
|
|||||||
setGlobal(global);
|
setGlobal(global);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (global.appConfig?.peerColors) {
|
||||||
|
updatePeerColors(global.appConfig.peerColors, global.appConfig.darkPeerColors);
|
||||||
|
}
|
||||||
|
|
||||||
return updateTabState(global, {
|
return updateTabState(global, {
|
||||||
messageLists: parsedMessageList ? [parsedMessageList] : initialTabState.messageLists,
|
messageLists: parsedMessageList ? [parsedMessageList] : initialTabState.messageLists,
|
||||||
}, tabId);
|
}, tabId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user