td icon indicating copy to clipboard operation
td copied to clipboard

If loading chats twice on different folders --> How does updates / 404 work?

Open bossdeep opened this issue 11 months ago • 1 comments

I have 2 chat folders:

  • ChatListMain has 9 chats.
  • ChatListFolder (chat_folder_id: 2) has 4 chats.

Then, I load chats in this sequence:

Loadchats (ChatlistMain) --> 9 chat updates are received (as I expected) Loadchats (Chatfolder id 2) --> 9 chat updates received (Shouldn't this be 4?) Loadchats (ChatlistMain) --> 404 Loadchats (Chatfolder id 2) --> 404

Is this expected behaviour?

Thank you @levlam

bossdeep avatar Feb 21 '25 13:02 bossdeep

Yes. 404 is returned for loadChats when all chats from the chat list are known to the app already. updateNewChat can be received any time for any chat.

levlam avatar Feb 21 '25 16:02 levlam