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 topic narrow or group private message narrow.

Fixes #3810.
  • Loading branch information
agrawal-d committed Feb 1, 2020
1 parent 34dd701 commit a4df35a
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 a4df35a

Please sign in to comment.