Chat List: Fix closing banners (#6555)

This commit is contained in:
zubiden 2025-12-24 12:33:45 +01:00 committed by Alexander Zinchuk
parent c891c4207b
commit e59ea1a10a

View File

@ -697,10 +697,9 @@ addActionHandler('loadConfig', async (global): Promise<void> => {
addActionHandler('loadPromoData', async (global): Promise<void> => {
const promoData = await callApi('fetchPromoData');
if (!promoData) return;
global = getGlobal();
const timeout = promoData.expires - getServerTime();
const timeout = (promoData?.expires || 0) - getServerTime();
if (timeout > 0) {
requestActionTimeout({
action: 'loadPromoData',