don't show empty templates
This commit is contained in:
parent
24ea66c9fc
commit
5c5d5cc4e3
|
@ -59,8 +59,10 @@ public class Presences {
|
||||||
synchronized (this.presences) {
|
synchronized (this.presences) {
|
||||||
ArrayList<PresenceTemplate> templates = new ArrayList<>(presences.size());
|
ArrayList<PresenceTemplate> templates = new ArrayList<>(presences.size());
|
||||||
for(Presence p : presences.values()) {
|
for(Presence p : presences.values()) {
|
||||||
|
if (p.getMessage() != null && !p.getMessage().trim().isEmpty()) {
|
||||||
templates.add(new PresenceTemplate(p.getStatus(), p.getMessage()));
|
templates.add(new PresenceTemplate(p.getStatus(), p.getMessage()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return templates;
|
return templates;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue