Closed levochkaa closed 1 year ago
I have encountered some issues while testing this PR, which is when changing chats, the user list does not update, please fix it
And also the user list update process introduces tremendous lag, probably related to fetching everything on the main thread
I have encountered some issues while testing this PR, which is when changing chats, the user list does not update, please fix it
It was updating, but just adding list of users from new chat to an old one. Fixed it:
if isInitial {
self.chatMembers = mappedUsers
} else {
self.chatMembers += mappedUsers
}
And also the user list update process introduces tremendous lag, probably related to fetching everything on the main thread
hope it is fixed, i have removed fetching from the main thread to background
Thanks for the fixes! I will test these changes later this day :)
Just did the testing:
UPD: tried again, somehow it works differently now, but still broken
Now after changing a chat, the user list does not update at all, it just clears itself and doesn't fill up again
Bruh I tried again and the behavior returned back to how it was lmao
Tested the new update, now it works as expected! Kind of... If I select a chat which is not a group, it will clear the entire list, as expected, but when I select a group again, it will not show a list of users from that chat, it will stay clear
And, if you can, it will be really good if you will add support for updates from TDLib, which will make that list live, and make it update itself when data changes
Fuck it, gonna YOLO it and do a merge
Added list of members of a chat to chat inspector
Some bugs when scrolling fast,
.anchorPreference(key:value:transform:)
might fix