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

Commit ee447f7

Browse files
committed
Add self email when narrow to self.
1 parent 9b65e07 commit ee447f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/com/zulip/android/filters/NarrowFilterPM.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ public String getJsonFilter() throws JSONException {
105105
emails.add(person.getEmail());
106106
}
107107
}
108+
if (people.size() == 1 && people.get(0).equals(ZulipApp.get().getYou())) {
109+
//PM to self
110+
emails.add(people.get(0).getEmail());
111+
}
108112
return (new JSONArray()).put(
109113
new JSONArray(Arrays.asList("pm-with",
110114
TextUtils.join(",", emails)))).toString();

0 commit comments

Comments
 (0)