chiark / gitweb /
List modes that shouldn't throw you into mentions.
authorSimon Tatham <anakin@pobox.com>
Thu, 4 Jan 2024 20:13:47 +0000 (20:13 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 4 Jan 2024 20:13:47 +0000 (20:13 +0000)
src/activity_stack.rs

index ef670c0d5580ed2d38ca083f7fc9b08063902069..cc08f8caa5a1a521d08ded16eb4f256848aafcdc 100644 (file)
@@ -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,
         }
     }