-
Notifications
You must be signed in to change notification settings - Fork 42
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
snippets don't update when content of message/reply is updated #707
Comments
This is after login into a workstation that's not been initialized yet, with ~20 sources on the server. The preview snippets lag behind the actual retrieval and decryption of messages by a couple of minutes, i.e. I don't see previews for sources that do have content. Eventually they all display previews. |
they eventually display previews after a full sync has occurred, which is why it takes a couple of mins |
I was able to repro in the case where there is are new messages from new sources |
The fix for this issue should also work when applied to #442, fyi |
OK... I'm on this. |
Actually, parking this for moment to fix #715. |
OK... this probably relates to some of the issues described in the update made in #733. |
So I've been looking into this issue this afternoon. I'll push a branch/draft PR after stand-up (except it doesn't work). I'm a bit stumped. I can see messages, replies and files being downloaded, but in I've been tracing how this all fits together and, as far as I can tell, the database has been written to with the message content by the time methods like It's the end of the afternoon for me and I have tired eyes. I'll pick this up in the morning again and any pointers would be welcome. I've started looking at SqlAlchemy sessions and how one on one thread might update the database, but another (on the main thread) won't see the changes until... well, I'm speculating from the observed behaviour and need to investigate what perhaps needs to happen so a fresh SELECT is issued or a cache somewhere is cleared. |
WiP (sitting on top of inline-conversation) is in my |
STR
Expected behavior
As the message downloads, the content updates in the sidebar also.
Actual behavior
The content is static, and will only refresh after a full sync (which will call the controller's
update_sources
method to update the sidebar).Comments
We do emit a signal each time a file, message, or reply is "ready" (i.e. has been successfully downloaded and decrypted), those signals are here, so we could use make use of them in the source list view to update the source list view elements when the content is updated.
The text was updated successfully, but these errors were encountered: