Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit f49f8b5

Browse files
committed
Check if we have already narrowed to a stream.
While narrowing, we should check if we have already narrowed to the required stream.
1 parent d8efc7d commit f49f8b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/java/com/zulip/android/activities/ZulipActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,8 +1884,9 @@ public void onNarrow(NarrowFilter narrowFilter) {
18841884

18851885

18861886
public void onNarrow(NarrowFilter narrowFilter, int messageId) {
1887-
// TODO: check if already narrowed to this particular stream/subject
1888-
doNarrow(narrowFilter, messageId);
1887+
if (narrowedList == null || narrowFilter != narrowedList.filter) {
1888+
doNarrow(narrowFilter, messageId);
1889+
}
18891890
}
18901891

18911892
@Override

0 commit comments

Comments
 (0)