mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
don't create templates for empty status messages
This commit is contained in:
parent
cd1fbf60ec
commit
a363e0a5d8
@ -3245,7 +3245,9 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
||||
}
|
||||
|
||||
public void changeStatus(Account account, Presence.Status status, String statusMessage) {
|
||||
databaseBackend.insertPresenceTemplate(new PresenceTemplate(status, statusMessage));
|
||||
if (!statusMessage.isEmpty()) {
|
||||
databaseBackend.insertPresenceTemplate(new PresenceTemplate(status, statusMessage));
|
||||
}
|
||||
changeStatusReal(account, status, statusMessage);
|
||||
}
|
||||
|
||||
@ -3259,7 +3261,9 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
||||
}
|
||||
|
||||
public void changeStatus(Presence.Status status, String statusMessage) {
|
||||
databaseBackend.insertPresenceTemplate(new PresenceTemplate(status, statusMessage));
|
||||
if (!statusMessage.isEmpty()) {
|
||||
databaseBackend.insertPresenceTemplate(new PresenceTemplate(status, statusMessage));
|
||||
}
|
||||
for(Account account : getAccounts()) {
|
||||
changeStatusReal(account, status, statusMessage);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user