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
Remove the 'Reply' option from messageActionSheet when the user is
in a group private message narrow.
  • Loading branch information
agrawal-d committed Feb 4, 2020
1 parent 666b962 commit 20ab23d
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 @@ -226,7 +226,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 20ab23d

Please sign in to comment.