diff --git a/app/screens/post_options/index.ts b/app/screens/post_options/index.ts index bfcbfbff0a..ed29f3457a 100644 --- a/app/screens/post_options/index.ts +++ b/app/screens/post_options/index.ts @@ -19,7 +19,7 @@ import {observeIsCRTEnabled, observeThreadById} from '@queries/servers/thread'; import {observeCurrentUser} from '@queries/servers/user'; import {toMilliseconds} from '@utils/datetime'; import {isMinimumServerVersion} from '@utils/helpers'; -import {isSystemMessage} from '@utils/post'; +import {isFromWebhook, isSystemMessage} from '@utils/post'; import {getPostIdsForCombinedUserActivityPost} from '@utils/post_list'; import {isSystemAdmin} from '@utils/user'; @@ -134,7 +134,11 @@ const enhanced = withObservables([], ({combinedPost, post, showAddReaction, loca ); const canMarkAsUnread = combineLatest([currentUser, channelIsArchived]).pipe( - switchMap(([user, isArchived]) => of$(!isArchived && user?.id !== post.userId && !isSystemMessage(post))), + switchMap(([user, isArchived]) => of$( + !isArchived && ( + (user?.id !== post.userId && !isSystemMessage(post)) || isFromWebhook(post) + ), + )), ); const canAddReaction = combineLatest([hasAddReactionPermission, channelIsReadOnly, isUnderMaxAllowedReactions, channelIsArchived]).pipe(