[telegram-desktop/f32] Backported upstream patches with startup hangs fixes.