mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
don't show empty templates
This commit is contained in:
parent
24ea66c9fc
commit
5c5d5cc4e3
@ -59,7 +59,9 @@ public class Presences {
|
||||
synchronized (this.presences) {
|
||||
ArrayList<PresenceTemplate> templates = new ArrayList<>(presences.size());
|
||||
for(Presence p : presences.values()) {
|
||||
templates.add(new PresenceTemplate(p.getStatus(),p.getMessage()));
|
||||
if (p.getMessage() != null && !p.getMessage().trim().isEmpty()) {
|
||||
templates.add(new PresenceTemplate(p.getStatus(), p.getMessage()));
|
||||
}
|
||||
}
|
||||
return templates;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user