chiark
/
gitweb
/
~ian
/
mastodonochrome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52d36fc
)
List modes that shouldn't throw you into mentions.
author
Simon Tatham
<anakin@pobox.com>
Thu, 4 Jan 2024 20:13:47 +0000
(20:13 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Thu, 4 Jan 2024 20:13:47 +0000
(20:13 +0000)
src/activity_stack.rs
patch
|
blob
|
history
diff --git
a/src/activity_stack.rs
b/src/activity_stack.rs
index ef670c0d5580ed2d38ca083f7fc9b08063902069..cc08f8caa5a1a521d08ded16eb4f256848aafcdc 100644
(file)
--- a/
src/activity_stack.rs
+++ b/
src/activity_stack.rs
@@
-68,6
+68,11
@@
impl Activity {
// ReadMentions itself doesn't count. This will have to return
// false for post-editing activities.
match self {
+ Activity::Util(UtilityActivity::ReadMentions) |
+ Activity::NonUtil(NonUtilityActivity::ComposeToplevel) |
+ Activity::NonUtil(NonUtilityActivity::PostComposeMenu) |
+ Activity::Util(UtilityActivity::ComposeReply(..)) |
+ Activity::Util(UtilityActivity::PostReplyMenu(..)) => false,
_ => true,
}
}