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

Commit c6c1e04

Browse files
committed
Narrow to selected message in the context menu.
1 parent b7e1ac4 commit c6c1e04

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,19 @@ public boolean onContextItemSelected(MenuItem item) {
188188
return true;
189189
case R.id.narrow_to_private:
190190
if (getActivity() instanceof NarrowListener) {
191-
((NarrowListener) getActivity()).onNarrow(new NarrowFilterPM(Arrays.asList(message.getRecipients(app))));
191+
((NarrowListener) getActivity()).onNarrow(new NarrowFilterPM(Arrays.asList(message.getRecipients(app))), message.getId());
192192
((NarrowListener) getActivity()).onNarrowFillSendBox(message, false);
193193
}
194194
return true;
195195
case R.id.narrow_to_stream:
196196
if (getActivity() instanceof NarrowListener) {
197-
((NarrowListener) getActivity()).onNarrow(new NarrowFilterStream(message.getStream(), null));
197+
((NarrowListener) getActivity()).onNarrow(new NarrowFilterStream(message.getStream(), null), message.getId());
198198
((NarrowListener) getActivity()).onNarrowFillSendBox(message, false);
199199
}
200200
return true;
201201
case R.id.narrow_to_subject:
202202
if (getActivity() instanceof NarrowListener) {
203-
((NarrowListener) getActivity()).onNarrow(new NarrowFilterStream(message.getStream(), message.getSubject()));
203+
((NarrowListener) getActivity()).onNarrow(new NarrowFilterStream(message.getStream(), message.getSubject()), message.getId());
204204
((NarrowListener) getActivity()).onNarrowFillSendBox(message, false);
205205
}
206206
return true;

app/src/main/java/com/zulip/android/models/Stream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ public void setFetchColor(String fetchedColor) {
218218

219219
public void setInHomeView(boolean inHomeView) {
220220
this.inHomeView = inHomeView;
221+
}
221222

222223
/**
223224
* This function returns the last message read in {@param streamName} stream.

0 commit comments

Comments
 (0)