Skip to content

Draft message gets cleared after app restart #6388

@sardarKhan-dev

Description

@sardarKhan-dev

Describe the bug
Draft messages are not persisted across app restarts in our app.
If we type a draft, kill the app, and reopen it, the draft is gone from both the channel list preview and the message composer.

SDK version

  • 6.32.2

To Reproduce
Open a channel.
Type a message in the composer but do not send it.
Leave it as draft.
Kill/force-close the app.
Reopen the app and go back to the same channel.

Expected behavior
The draft should still be available after app restart until the user sends or manually clears it.

Screenshots
We have draft messages enabled (ChatUI.draftMessagesEnabled = true).
This seems related to draft persistence lifecycle on app process death.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions