From: Simon Tatham Date: Thu, 4 Jan 2024 20:13:47 +0000 (+0000) Subject: List modes that shouldn't throw you into mentions. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=5669616216fd55da5c1e2f89598890de00a97533;p=mastodonochrome.git List modes that shouldn't throw you into mentions. --- diff --git a/src/activity_stack.rs b/src/activity_stack.rs index ef670c0..cc08f8c 100644 --- 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, } }