mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-01 20:10:39 +00:00
Space after if before conditions if( -> if (
This commit is contained in:
parent
5057161c90
commit
d53af19319
1 changed files with 5 additions and 5 deletions
|
@ -778,7 +778,7 @@ class Manager implements Signal {
|
||||||
@Override
|
@Override
|
||||||
public String getContactName(String number) {
|
public String getContactName(String number) {
|
||||||
ContactInfo contact = contactStore.getContact(number);
|
ContactInfo contact = contactStore.getContact(number);
|
||||||
if(contact == null) {
|
if (contact == null) {
|
||||||
return number;
|
return number;
|
||||||
} else {
|
} else {
|
||||||
return contact.name;
|
return contact.name;
|
||||||
|
@ -788,7 +788,7 @@ class Manager implements Signal {
|
||||||
@Override
|
@Override
|
||||||
public void setContactName(String number, String name) {
|
public void setContactName(String number, String name) {
|
||||||
ContactInfo contact = contactStore.getContact(number);
|
ContactInfo contact = contactStore.getContact(number);
|
||||||
if(contact == null) {
|
if (contact == null) {
|
||||||
contact = new ContactInfo();
|
contact = new ContactInfo();
|
||||||
contact.number = number;
|
contact.number = number;
|
||||||
System.out.println("Add contact " + number + " named " + name);
|
System.out.println("Add contact " + number + " named " + name);
|
||||||
|
@ -815,13 +815,13 @@ class Manager implements Signal {
|
||||||
String optName = null;
|
String optName = null;
|
||||||
Collection<String> optMembers = null;
|
Collection<String> optMembers = null;
|
||||||
String optAvatar = null;
|
String optAvatar = null;
|
||||||
if(!name.isEmpty()) {
|
if (!name.isEmpty()) {
|
||||||
optName = name;
|
optName = name;
|
||||||
}
|
}
|
||||||
if(members.size() > 0) {
|
if (members.size() > 0) {
|
||||||
optMembers = members;
|
optMembers = members;
|
||||||
}
|
}
|
||||||
if(!avatar.isEmpty()) {
|
if (!avatar.isEmpty()) {
|
||||||
optAvatar = avatar;
|
optAvatar = avatar;
|
||||||
}
|
}
|
||||||
System.err.println("sendUpdateGroupMessage(" + Base64.encodeBytes(groupId) + ", " + optName + ", " + optMembers + ", " + optAvatar + ");");
|
System.err.println("sendUpdateGroupMessage(" + Base64.encodeBytes(groupId) + ", " + optName + ", " + optMembers + ", " + optAvatar + ");");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue