-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
sending a message is often delayed, sometimes buggy #3586
Comments
maybe send me the log after it happened, maybe there is some error somewhere? |
This code is responsible for message sending and draft removal: deltachat-desktop/packages/frontend/src/components/composer/Composer.tsx Lines 140 to 153 in a5c0243
It calls
This also might have to do with other code, e.g. message list re-rendering and re-fetching being too slow. |
Can't comment on the code but the issues still appears often for me -- on desktop i now take care especially in group chats, to very carefully check if the message went out, even if the input field continues to have the full draft message. I then need to remove it manually. |
Is it bad on all your Delta Chat accounts? |
On Thu, Sep 19, 2024 at 23:59 -0700, WofWca wrote:
Is it bad on all your Delta Chat accounts?
Only my (big) main accounts exposes the problem, and only in bigger group chats.
In other accounts i am not really part of larger chats.
Superficially, this points to some event-bubbling/timing problem?
I also never had this problem on Android.
|
@Simon-Laux could you explain what's the point of |
to show the actual state of the draft in core. maybe could make sense to pass a chatId as argument there to make sure it is never called incorrectly while switching chats? |
But I mean, can it so happen that there is gonna be a draft after sending a message? Why make an async call. Would |
@hpk42 A fix for a related issue (deltachat/deltachat-core-rust#6036) has been released with Delta Chat Dekstop 1.47.1. Please report whether things improved. |
K, i'll close and will re-open or open a new issue if it re-appears. |
Hmmm I think I just encountered this issue (draft not getting removed) myself, on 1.49.0 (git: v1.33.0-1229-gc574dd42) Could have to do with #4144 where we switched to I suspect this mostly happens on heavier accounts. |
yesterday, on desktop-main the draft did not disappear often,
while the message was sent out. The draft was never cleared.
This happened around 5 out of 6 times when i sent a message.
Today it doesn't happen so much -- but maybe today is also less chat activity
on my account, not sure.
Also regarding other problems with message sending
(eg on android deltachat/deltachat-android#3489 )
i am wondering if there should be a more direct "send draft message" API
so that the UI executes an atomic action on core, that adds/sends the message
and clears the draft in one go.
…On Sat, Dec 14, 2024 at 02:34 -0800, WofWca wrote:
Hmmm I think I just encountered this issue (draft not getting removed) myself, on 1.49.0 (git: v1.33.0-1229-gc574dd42)
Could have to do with #4144 where we switched to `throttle` to save draft.
I suspect this mostly happens on heavier accounts.
--
Reply to this email directly or view it on GitHub:
#3586 (comment)
You are receiving this because you modified the open/close state.
Message ID: ***@***.***>
|
yes, that is actually the main idea of the composer rewrite. keep more of the state in core and don't recreate the draft every time it is changed. |
this is already in place since since deltachat/deltachat-core-rust#2887: you can there was also deltachat/deltachat-core-rust#4839 added a long time ago, to make webxdc-staging work. but not totally sure, what is missing there, the corresponding issue to "to send webxdc app staged in draft with JSON-RPC" (#4643) was reopend a year ago. so, from view of core/cffi and maybe even jsonrpc, "sending and clearing draft" is mostly fine - it is just that things are not (always) used that way (also not on android outside webxdc-drafts iirc) |
am using a recent master of core and desktop.
when i hit "ctrl-enter" for sending -- half the time it delays for 2+ seconds and sometimes the draft-text does not go away even after the message is posted (see screenshot). It feels like something is blocking. Currently, i can't offer much help in debugging but at least wanted to raise it, anyway.
The text was updated successfully, but these errors were encountered: