mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 08:21:47 +00:00
When sending a DM, don't close the draft area, just clear it.
This commit is contained in:
parent
a0903d363b
commit
c08fc00098
@ -561,8 +561,6 @@ impl GossipUi {
|
||||
}
|
||||
|
||||
fn clear_post(&mut self) {
|
||||
self.show_post_area = false;
|
||||
self.draft_needs_focus = false;
|
||||
self.draft = "".to_owned();
|
||||
self.draft_repost = None;
|
||||
self.tag_someone = "".to_owned();
|
||||
@ -572,6 +570,14 @@ impl GossipUi {
|
||||
self.draft_dm_channel = None;
|
||||
self.include_content_warning = false;
|
||||
self.content_warning = "".to_owned();
|
||||
|
||||
if let Page::Feed(FeedKind::DmChat(_)) = self.page {
|
||||
self.show_post_area = true;
|
||||
self.draft_needs_focus = true;
|
||||
} else {
|
||||
self.show_post_area = false;
|
||||
self.draft_needs_focus = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user