Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Unarchiving: Chats Reappear When Searching by Name #26641

Closed
aliafshany opened this issue Aug 11, 2023 · 13 comments
Closed

Unexpected Unarchiving: Chats Reappear When Searching by Name #26641

aliafshany opened this issue Aug 11, 2023 · 13 comments

Comments

@aliafshany
Copy link

Steps to reproduce

Search for a name wherever you desire.

Expected behaviour

Contacts will be unarchived. You need to kill the app so you can restore it to its previous state.

Actual behaviour

Contacts will be unarchived.

Operating system

macos 13.5.1

Version of Telegram Desktop

4.8.10

Installation source

Static binary from official website

Crash ID

No response

Logs

[2023.08.11 13:33:12] Launched version: 4008010, install beta: [TRUE], alpha: 0, debug mode: [FALSE]
[2023.08.11 13:33:12] Executable dir: /Applications/, name: Telegram.app
[2023.08.11 13:33:12] Initial working dir: //
[2023.08.11 13:33:12] Working dir: /Users/f/Library/Application Support/Telegram Desktop/
[2023.08.11 13:33:12] Command line: /Applications/Telegram.app/Contents/MacOS/Telegram
[2023.08.11 13:33:12] Executable path before check: /Applications/Telegram.app
[2023.08.11 13:33:12] Logs started
[2023.08.11 13:33:13] Connecting local socket to /tmp/c930cc95b24af67f2ccbef30d1ba0c81-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2023.08.11 13:33:13] This is the only instance of Telegram, starting server and app...
[2023.08.11 13:33:13] Moved logging from '/Users/f/Library/Application Support/Telegram Desktop/log_start0.txt' to '/Users/f/Library/Application Support/Telegram Desktop/log.txt'!
[2023.08.11 13:33:13] Global devicePixelRatio: 2
[2023.08.11 13:33:13] Primary screen DPI: 72, Base: 72.
[2023.08.11 13:33:13] Computed screen scale: 100
[2023.08.11 13:33:13] DevicePixelRatio: 2
[2023.08.11 13:33:13] ScreenScale: 110
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2023.08.11 13:33:13] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2023.08.11 13:33:13] App Info: reading settings...
[2023.08.11 13:33:13] App Info: reading encrypted settings...
[2023.08.11 13:33:13] Lang Info: Loaded cached, keys: 5140
[2023.08.11 13:33:14] OpenAL Logging Level: (not set)
[2023.08.11 13:33:14] Audio Playback Devices: MacBook Pro Speakers;Mi Monitor
[2023.08.11 13:33:14] Audio Playback Default Device: MacBook Pro Speakers
[2023.08.11 13:33:14] Audio Capture Devices: MacBook Pro Microphone
[2023.08.11 13:33:14] Audio Capture Default Device: MacBook Pro Microphone
[2023.08.11 13:33:14] Title Font: .AppleSystemUIFont
[2023.08.11 13:33:14] App Info: reading accounts info...
[2023.08.11 13:33:14] App Info: reading encrypted info...
[2023.08.11 13:33:14] App Info: reading map...
[2023.08.11 13:33:14] App Info: reading encrypted map...
[2023.08.11 13:33:14] App Info: reading encrypted user settings...
[2023.08.11 13:33:14] App Info: encrypted user settings read.
[2023.08.11 13:33:14] App Info: reading encrypted mtp data...
[2023.08.11 13:33:14] MTP Info: read keys, current: 5, to destroy: 0
[2023.08.11 13:33:14] Map read time: 5
[2023.08.11 13:33:14] App Info: reading encrypted mtp config...
[2023.08.11 13:33:14] App Info: reading map...
[2023.08.11 13:33:14] App Info: reading encrypted map...
[2023.08.11 13:33:14] App Info: reading encrypted user settings...
[2023.08.11 13:33:14] App Info: encrypted user settings read.
[2023.08.11 13:33:14] App Info: reading encrypted mtp data...
[2023.08.11 13:33:14] MTP Info: read keys, current: 5, to destroy: 0
[2023.08.11 13:33:14] Map read time: 1
[2023.08.11 13:33:14] App Info: reading encrypted mtp config...
[2023.08.11 13:33:14] App Info: reading map...
[2023.08.11 13:33:14] App Info: reading encrypted map...
[2023.08.11 13:33:14] App Info: reading encrypted user settings...
[2023.08.11 13:33:14] App Info: encrypted user settings read.
[2023.08.11 13:33:14] App Info: reading encrypted mtp data...
[2023.08.11 13:33:14] MTP Info: read keys, current: 5, to destroy: 0
[2023.08.11 13:33:14] Map read time: 1
[2023.08.11 13:33:14] App Info: reading encrypted mtp config...
[2023.08.11 13:33:14] App Info: reading map...
[2023.08.11 13:33:14] App Info: reading encrypted map...
[2023.08.11 13:33:14] App Info: reading encrypted user settings...
[2023.08.11 13:33:14] App Info: encrypted user settings read.
[2023.08.11 13:33:14] App Info: reading encrypted mtp data...
[2023.08.11 13:33:14] MTP Info: read keys, current: 4, to destroy: 0
[2023.08.11 13:33:14] Map read time: 0
[2023.08.11 13:33:14] App Info: reading encrypted mtp config...
[2023.08.11 13:33:14] Export Info: Destroy top bar by controller removal.
[2023.08.11 13:33:15] OpenGL Profile: NoProfile.
[2023.08.11 13:33:15] OpenGL Renderer: Apple M2
[2023.08.11 13:33:15] OpenGL Vendor: Apple
[2023.08.11 13:33:15] OpenGL Version: 2.1 Metal - 83.1
[2023.08.11 13:33:15] OpenGL Extensions: GL_ARB_shading_language_100, GL_ARB_texture_env_dot3, GL_EXT_blend_func_separate, GL_ARB_imaging, GL_SGIS_generate_mipmap, GL_IBM_rasterpos_clip, GL_EXT_blend_equation_separate, GL_EXT_framebuffer_sRGB, GL_ARB_provoking_vertex, GL_EXT_texture_sRGB, GL_APPLE_vertex_point_size, GL_NV_depth_clamp, GL_ARB_half_float_vertex, GL_APPLE_aux_depth_stencil, GL_ARB_texture_compression_rgtc, GL_EXT_transform_feedback, GL_EXT_gpu_shader4, GL_NV_vertex_program3, GL_EXT_blend_color, GL_APPLE_flush_buffer_range, GL_ARB_texture_float, GL_EXT_blend_minmax, GL_SGIS_texture_edge_clamp, GL_ATI_separate_stencil, GL_ARB_depth_clamp, GL_ARB_texture_non_power_of_two, GL_APPLE_flush_render, GL_NV_conditional_render, GL_EXT_texture_shared_exponent, GL_EXT_texture_rectangle, GL_SGIS_texture_lod, GL_EXT_draw_buffers2, GL_SGI_color_matrix, GL_APPLE_transform_hint, GL_NV_fragment_program_option, GL_NV_texture_barrier, GL_ARB_framebuffer_sRGB, GL_ARB_depth_buffer_float, GL_EXT_framebuffer_multisample, GL_EXT_separate_specular_color, GL_NV_vertex_program2_option, GL_EXT_fog_coord, GL_EXT_stencil_wrap, GL_ARB_half_float_pixel, GL_EXT_texture_array, GL_APPLE_row_bytes, GL_EXT_secondary_color, GL_EXT_draw_range_elements, GL_APPLE_specular_vector, GL_APPLE_packed_pixels, GL_EXT_texture_compression_s3tc, GL_NV_light_max_exponent, GL_ARB_texture_rectangle, GL_EXT_framebuffer_object, GL_ARB_shader_texture_lod, GL_EXT_vertex_array_bgra, GL_ARB_pixel_buffer_object, GL_EXT_debug_label, GL_EXT_bgra, GL_APPLE_client_storage, GL_EXT_rescale_normal, GL_EXT_abgr, GL_EXT_framebuffer_multisample_blit_scaled, GL_EXT_gpu_program_parameters, GL_EXT_bindable_uniform, GL_APPLE_rgb_422, GL_EXT_texture_sRGB_decode, GL_ARB_instanced_arrays, GL_ARB_texture_env_combine, GL_ARB_shader_objects, GL_ARB_point_parameters, GL_EXT_multi_draw_arrays, GL_NV_texgen_reflection, GL_EXT_provoking_vertex, GL_APPLE_texture_range, GL_ARB_draw_elements_base_vertex, GL_ARB_fragment_program_shadow, GL_NV_fog_distance, GL_EXT_texture_lod_bias, GL_ARB_vertex_blend, GL_NV_fragment_program2, GL_ARB_texture_env_crossbar, GL_ARB_multitexture, GL_ARB_draw_buffers, GL_EXT_packed_depth_stencil, GL_ARB_texture_compression, GL_EXT_debug_marker, GL_ARB_fragment_program, GL_EXT_texture_filter_anisotropic, GL_APPLE_vertex_array_object, GL_EXT_clip_volume_hint, GL_ARB_seamless_cube_map, , GL_ARB_texture_mirrored_repeat, GL_ARB_draw_instanced, GL_EXT_texture_integer, GL_ATI_texture_float, GL_EXT_texture_compression_dxt1, GL_ARB_framebuffer_object, GL_APPLE_ycbcr_422, GL_ARB_shadow, GL_APPLE_float_pixels, GL_APPLE_element_array, GL_ARB_color_buffer_float, GL_ARB_depth_texture, GL_ARB_transpose_matrix, GL_EXT_shadow_funcs, GL_ARB_vertex_buffer_object, GL_EXT_timer_query, GL_ARB_multisample, GL_EXT_stencil_two_side, GL_ARB_texture_border_clamp, GL_EXT_framebuffer_blit, GL_ARB_vertex_array_bgra, GL_ARB_vertex_program, GL_EXT_packed_float, GL_ATI_texture_env_combine3, GL_NV_blend_square, GL_APPLE_pixel_buffer, GL_ARB_sync, GL_ARB_fragment_shader, GL_APPLE_vertex_program_evaluators, GL_EXT_geometry_shader4, GL_ARB_texture_env_add, GL_ARB_texture_rg, GL_ARB_vertex_shader, GL_ARB_shadow_ambient, GL_ARB_occlusion_query, GL_EXT_texture_env_add, GL_APPLE_fence, GL_EXT_blend_subtract, GL_ARB_window_pos, GL_ARB_texture_cube_map, GL_ARB_point_sprite
[2023.08.11 13:33:15] OpenGL: QOpenGLContext created, version: 2.2.
[2023.08.11 13:33:15] OpenGL: [TRUE] (Window)
[2023.08.11 13:33:18] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:18] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:18] Message Info: bad message notification received (error_code 33) for msg_id = 7266003186514186588, seq_no = 152
[2023.08.11 13:33:18] Message Info: bad message notification received, msgId 7266003186514186588, error_code 33
[2023.08.11 13:33:18] Message Info: bad message notification received (error_code 33) for msg_id = 7266003187120995908, seq_no = 90
[2023.08.11 13:33:18] Message Info: bad message notification received (error_code 33) for msg_id = 7266003186709916740, seq_no = 94
[2023.08.11 13:33:18] Message Info: bad message notification received (error_code 33) for msg_id = 7266003186991274636, seq_no = 95
[2023.08.11 13:33:18] Message Info: bad message notification received, msgId 7266003186991274636, error_code 33
[2023.08.11 13:33:18] Message Info: bad message notification received (error_code 33) for msg_id = 7266003186561693764, seq_no = 70
[2023.08.11 13:33:18] Message Info: bad message notification received, msgId 7266003186561693764, error_code 33
[2023.08.11 13:33:20] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:20] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:21] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:21] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:21] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:21] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:22] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:22] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:22] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:22] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:22] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:22] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:22] RPC Error: request 397 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:22] RPC Error: request 398 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:23] RPC Error: request 416 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:23] RPC Error: request 453 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:23] RPC Error: request 454 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:23] RPC Error: request 457 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:23] RPC Error: request 456 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:23] API Error: Could not resolve story 1120546483_1
[2023.08.11 13:33:23] RPC Error: request 469 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:23] RPC Error: request 488 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:23] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:24] RPC Error: request 497 got fail with code 400, error CHANNEL_PRIVATE
[2023.08.11 13:33:25] RPC Error: request 512 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:25] RPC Error: request 511 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:25] API Warning: not loaded minimal channel applied.
[2023.08.11 13:33:26] RPC Error: request 533 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:26] RPC Error: request 532 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:26] RPC Error: request 534 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.08.11 13:33:27] Message Info: bad message notification received (error_code 33) for msg_id = 7266003225149785436, seq_no = 642
@Aokromes
Copy link
Collaborator

for me searching for archived contact name continues to be archived.

@aliafshany
Copy link
Author

@Aokromes
Please watch this video. I used Command+Q to quit the application and then relaunched it.

Screen.Recording.2023-08-11.at.13.50.12.mov

@aliafshany
Copy link
Author

@Aokromes
i just reinstalled Telegram bot this one happend again!

please investigate this

@aliafshany
Copy link
Author

aliafshany commented Aug 11, 2023

I have another issue that has remained unanswered.

#26544

@aliafshany
Copy link
Author

aliafshany commented Aug 11, 2023

@Aokromes
Update: It seems this is not specifically related to Telegram Desktop. I tested my other accounts, and they were totally okay. This problem persists on my main Telegram account.

This is not happening on Android or Telegram Web, only on Telegram Desktop and only on my main account.

There are literally no options for this. This seems to be a server-side bug.
what do you suggest?

@john-preston
Copy link
Member

I'm not sure they're really unarchived. Maybe they are not loaded at all from the server when you open the app, then you start searching and they are added to the main chats list from the server side search results, because they were not loaded as archived.

Can you test it that way - launch Telegram, open Archive and load it down to the very bottom first, then return to All Chats and try reproducing the issue. Will they stay in the list in that case? Or does it reproduce only when the archive wasn't loaded till the bottom?

@john-preston
Copy link
Member

Hmm, I can't reproduce that way as well. I don't know how this happens :(

@john-preston
Copy link
Member

Are you sure those contacts were archived? Judging by the video at the moment of searching this contact was in contacts list, but this history wasn't loaded yet (wasn't loaded in all chats or in archive, at all -- no last message):

image

Then it was loaded from the server side with a server-side search request:

image

And after that it appeared in the main chats list. Is it possible that this chat wasn't archived at all? What happens if you right click on it in the "All Chats"?

Maybe this chat's last message is old enough (not in the last ~500'000 of your messages) and it isn't returned in the main chats list at all, but it is returned when it is requested separately in the search results.

@john-preston
Copy link
Member

Ok, is it possible that this contact was never archived? You archived all your chats from the main list, but this chat was not in the chats list, it appears there only when it is loaded (using search or opening the message history with that contact). If you archive it and relaunch the app and search like that again -- is it still placed in the All Chats or in archive like it should?

@aliafshany
Copy link
Author

aliafshany commented Aug 11, 2023

I'm not sure they're really unarchived. Maybe they are not loaded at all from the server when you open the app, then you start searching and they are added to the main chats list from the server side search results, because they were not loaded as archived.

Can you test it that way - launch Telegram, open Archive and load it down to the very bottom first, then return to All Chats and try reproducing the issue. Will they stay in the list in that case? Or does it reproduce only when the archive wasn't loaded till the bottom?

@john-preston I did the exact thing.
I can provide you with an AnyDesk session or a Google Meet session. Alternatively, I can send you a video demo privately, perhaps via email or a Telegram ID.

Those chats are archived. I have archived them multiple times when they appear.

It's strange that this issue only occurs in my main account and not the others. Additionally, it only happens on my desktop, not on my main account on my phone or even Telegram Web.I mean, at the same time, they are in my "All Chats" folder. However, I can't see them on my phone; only on Telegram Desktop.

Are you sure those contacts were archived?

Yes, I am totally sure.

And after that it appeared in the main chats list. Is it possible that this chat wasn't archived at all?

They had been definitely archived. I tried multiple times myself.

What happens if you right click on it in the "All Chats"?

It will act like a normal, unarchived chat.
CleanShot 2023-08-11 at 19 26 29

Maybe this chat's last message is old enough (not in the last ~500'000 of your messages) and it isn't returned in the main chats list at all, but it is returned when it is requested separately in the search results.

This is a pretty good guess because in all of my attempts, only those appeared that I hadn't contacted with them for more than a year.

Ok, is it possible that this contact was never archived?

This is not possible.

You archived all your chats from the main list, but this chat was not in the chats list, it appears there only when it is loaded

Just tried that, but there are still the same results. However, there's something strange. When I search their names and then right-click on them, I don't see the "Unarchive" button. Instead, I see "Archive." So it seems they never get archived. I've tried archiving them multiple times, but it appears that the "Archive" command has no effect on them.

If you archive it and relaunch the app and search like that again -- is it still placed in the All Chats or in archive like it should?

Yes, they will appear again.

@john-preston
Copy link
Member

Ok, we can try debugging it with logs. You can contact me at t.me/preston, I'll ask you to enable DebugLogs, reproduce the issue and send me the logs. The logs contain all the network activity of the app and I'll be able to see if server returns wrong data about archive state of those chats or I wrongly interpret them.

@aliafshany
Copy link
Author

@john-preston I just sent a PM to you. Thank you for investigating.

@aliafshany
Copy link
Author

Yes, confirm that this issue has been resolved. I truly appreciate your efforts.
This was a Server-side Bug.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants