Skip to content

Fix chat draft persistence#272

Open
SIGMAREAL wants to merge 1 commit into
JerryZLiu:mainfrom
SIGMAREAL:fix/chat-draft-preserve
Open

Fix chat draft persistence#272
SIGMAREAL wants to merge 1 commit into
JerryZLiu:mainfrom
SIGMAREAL:fix/chat-draft-preserve

Conversation

@SIGMAREAL

Copy link
Copy Markdown
Contributor

Summary

  • Keep the Chat composer draft in ChatService instead of local ChatView state so it survives tab/view recreation.
  • Clear the draft when the chat conversation is reset.
  • Add unit coverage for preserving and clearing the draft.

Tests

  • xcodebuild test -project Dayflow/Dayflow.xcodeproj -scheme Dayflow -only-testing:DayflowTests -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO

Fixes #268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

在CHAT页面输入了信息(但没有发送),切换页面之后再回到CHAT,输入的信息就消失了

1 participant