diff --git a/src/utils/__tests__/narrow-test.js b/src/utils/__tests__/narrow-test.js index ce7c135e296..5c64a063194 100644 --- a/src/utils/__tests__/narrow-test.js +++ b/src/utils/__tests__/narrow-test.js @@ -365,17 +365,6 @@ describe('getNarrowFromMessage', () => { expect(actualNarrow).toEqual(expectedNarrow); }); - test('if recipient of a message is string, returns a stream narrow', () => { - const message = { - display_recipient: 'stream', - }; - const expectedNarrow = streamNarrow('stream'); - - const actualNarrow = getNarrowFromMessage(message); - - expect(actualNarrow).toEqual(expectedNarrow); - }); - test('if recipient is a string and there is a subject returns a topic narrow', () => { const message = { display_recipient: 'stream', diff --git a/src/utils/narrow.js b/src/utils/narrow.js index 0ea5e25c45c..84d96773f9a 100644 --- a/src/utils/narrow.js +++ b/src/utils/narrow.js @@ -271,9 +271,5 @@ export const getNarrowFromMessage = (message: Message | Outbox, ownEmail: string return groupNarrow(recipient.map(x => x.email)); } - if (message.subject && message.subject.length) { - return topicNarrow(message.display_recipient, message.subject); - } - - return streamNarrow(message.display_recipient); + return topicNarrow(message.display_recipient, message.subject); };