Check if we have already narrowed to a stream.
While narrowing, we should check if we have already narrowed to the
required stream.
@@ -1884,9 +1884,10 @@ public class ZulipActivity extends BaseActivity implements
public void onNarrow(NarrowFilter narrowFilter, int messageId) {
- // TODO: check if already narrowed to this particular stream/subject
+ if (narrowedList == null || narrowFilter != narrowedList.filter) {
doNarrow(narrowFilter, messageId);
}
+ }
@Override
protected void onPostCreate(Bundle savedInstanceState) {
