Profile Photo: Fix upload bot photo (#6776)

This commit is contained in:
Alexander Zinchuk 2026-03-31 11:28:39 +02:00
parent b5fed8276a
commit ed638330d4

View File

@ -150,7 +150,10 @@ addActionHandler('uploadProfilePhoto', async (global, actions, payload): Promise
global = updateManagementProgress(global, ManagementProgress.Complete, tabId);
setGlobal(global);
actions.loadFullUser({ userId: global.currentUserId! });
const userId = bot?.id ?? global.currentUserId;
if (!userId) return;
actions.loadFullUser({ userId });
});
addActionHandler('signUp', (global, actions, payload): ActionReturnType => {