This repository was archived by the owner on Jul 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
app/src/main/java/com/zulip/android Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1748,8 +1748,12 @@ protected void narrow(final Stream stream) {
1748
1748
doNarrow (new NarrowFilterStream (stream , null ));
1749
1749
}
1750
1750
1751
- doNarrow (new NarrowFilterPM (Arrays .asList (app .getYou (), person )));
1752
1751
private void narrowPMWith (final Person person ) {
1752
+ List <Person > list = new ArrayList <>();
1753
+ list .add (person );
1754
+ if (!person .getEmail ().equals (app .getYou ().getEmail ()))
1755
+ list .add (app .getYou ());
1756
+ doNarrow (new NarrowFilterPM (list ));
1753
1757
onNarrowFillSendBoxPrivate (new Person []{person },false );
1754
1758
}
1755
1759
Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ public boolean matches(Message msg) {
73
73
public String getTitle () {
74
74
ArrayList <String > names = new ArrayList <>();
75
75
for (Person person : people ) {
76
- if (!person .equals (ZulipApp .get ().getYou ()) || people .size () == 1 ) { //If PM to self then show title as your name
76
+ // If PM to self then show title as your name
77
+ // people size == 1 implies PM to self
78
+ if (person .getId () != ZulipApp .get ().getYou ().getId () || people .size () == 1 ) {
77
79
names .add (person .getName ());
78
80
}
79
81
}
You can’t perform that action at this time.
0 commit comments