You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when the chat is switched, the state of the component changes and its text gets assigned the value of the other chat's text, so the draft of the previous chat is lost.
I have attemted to updateDraftText() with prevState.text, but it refuses to save the draft here
log.warn("chat Id and InputChatId don't match, do nothing")
}else{
Then I thought I'd call BackendRemote.rpc.miscSetDraft() anyway, but it looks like it depends on a ton of other state, so we need prevState there as well I guess.
- add throttle to packages/shared/utils.ts
- use throttle in saveDraft for messages
- remove explicit call to saveDraft when setting state with new text
- fixes#3733
- add throttle to packages/shared/utils.ts
- use throttle in saveDraft for messages
- remove explicit call to saveDraft when setting state with new text
- fixes#3733
- add throttle to packages/shared/utils.ts
- use throttle in saveDraft for messages
- remove explicit call to saveDraft when setting state with new text
- fixes#3733
- add throttle to packages/shared/utils.ts
- use throttle in saveDraft for messages
- remove explicit call to saveDraft when setting state with new text
- fixes#3733
- add throttle to packages/shared/utils.ts
- use throttle in saveDraft for messages
- remove explicit call to saveDraft when setting state with new text
- fixes#3733
Operating System (Linux/Mac/Windows/iOS/Android):
Delta Chat Version: c878fc7
Expected behavior: Draft message saved
Actual behavior: Draft message remains unchanged
Steps to reproduce the problem:
Screenshots:

Logs:
Example use case: paste something in the message composer and then immediately switch to a different chat.
This has to do with this debounce
deltachat-desktop/src/renderer/components/composer/ComposerMessageInput.tsx
Lines 49 to 52 in 584b59c
when the chat is switched, the state of the component changes and its text gets assigned the value of the other chat's text, so the draft of the previous chat is lost.
I have attemted to
updateDraftText()
withprevState.text
, but it refuses to save the draft heredeltachat-desktop/src/renderer/components/composer/Composer.tsx
Lines 539 to 541 in 584b59c
Then I thought I'd call
BackendRemote.rpc.miscSetDraft()
anyway, but it looks like it depends on a ton of other state, so we needprevState
there as well I guess.deltachat-desktop/src/renderer/components/composer/Composer.tsx
Lines 503 to 510 in 584b59c
The text was updated successfully, but these errors were encountered: