File tree 2 files changed +4
-3
lines changed
app/src/main/java/com/zulip/android
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public boolean matches(Message msg) {
74
74
public String getTitle () {
75
75
ArrayList <String > names = new ArrayList <>();
76
76
for (Person person : people ) {
77
- if (!person .equals (ZulipApp .get ().getYou ())) {
77
+ if (!person .equals (ZulipApp .get ().getYou ()) || people . size () == 1 ) { //If PM to self then show title as your name
78
78
names .add (person .getName ());
79
79
}
80
80
}
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ public void setRecipient(String[] emails) {
231
231
232
232
/**
233
233
* Constructs a pretty-printable-to-the-user string consisting of the names
234
- * of all of the participants in the message, minus you .
234
+ * of all of the participants in the message.
235
235
* <p/>
236
236
* For MessageType.STREAM_MESSAGE, return the stream name instead.
237
237
*
@@ -246,14 +246,15 @@ public String getDisplayRecipient(ZulipApp app) {
246
246
ArrayList <String > names = new ArrayList <>();
247
247
248
248
for (Person person : people ) {
249
- if (person .id != app .getYou ().id ) {
249
+ if (person .id != app .getYou ().id || people . length == 1 ) {
250
250
names .add (person .getName ());
251
251
}
252
252
}
253
253
return TextUtils .join (", " , names );
254
254
}
255
255
}
256
256
257
+
257
258
/**
258
259
* Creates a comma-separated String of the email addressed of all the
259
260
* recipients of the message, as would be suitable to place in the compose
You can’t perform that action at this time.
0 commit comments