Skip to content

Commit

Permalink
message list: remove "Reply" action when in topic/ group PM narrow.
Browse files Browse the repository at this point in the history
Fixes #3810.
  • Loading branch information
agrawal-d committed Jan 30, 2020
1 parent 51e7a78 commit 9c2b533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message/messageActionSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { BackgroundData } from '../webview/MessageList';
import {
getNarrowFromMessage,
isHomeNarrow,
isPrivateNarrow,
isPrivateOrGroupNarrow,
isSpecialNarrow,
isTopicNarrow,
} from '../utils/narrow';
Expand Down Expand Up @@ -206,7 +206,7 @@ export const constructMessageActionButtons = ({
if (!isAnOutboxMessage(message) && messageNotDeleted(message)) {
buttons.push('addReaction');
}
if (!isAnOutboxMessage(message) && !isTopicNarrow(narrow) && !isPrivateNarrow(narrow)) {
if (!isAnOutboxMessage(message) && !isTopicNarrow(narrow) && !isPrivateOrGroupNarrow(narrow)) {
if (isAnnouncementOnly && !isAdmin) {
buttons.push('narrowToTopic');
} else {
Expand Down

0 comments on commit 9c2b533

Please sign in to comment.