mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Fix build with Java 7
This commit is contained in:
parent
ef5d3a65f8
commit
80cc0cad92
1 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ public class Main {
|
|||
System.exit(1);
|
||||
}
|
||||
try {
|
||||
m.sendEndSessionMessage(ns.getList("recipient"));
|
||||
m.sendEndSessionMessage(ns.<String>getList("recipient"));
|
||||
} catch (IOException e) {
|
||||
handleIOException(e);
|
||||
} catch (EncapsulatedExceptions e) {
|
||||
|
@ -120,7 +120,7 @@ public class Main {
|
|||
byte[] groupId = decodeGroupId(ns.getString("group"));
|
||||
m.sendGroupMessage(messageText, ns.<String>getList("attachment"), groupId);
|
||||
} else {
|
||||
m.sendMessage(messageText, ns.<String>getList("attachment"), ns.getList("recipient"));
|
||||
m.sendMessage(messageText, ns.<String>getList("attachment"), ns.<String>getList("recipient"));
|
||||
}
|
||||
} catch (IOException e) {
|
||||
handleIOException(e);
|
||||
|
@ -194,7 +194,7 @@ public class Main {
|
|||
if (ns.getString("group") != null) {
|
||||
groupId = decodeGroupId(ns.getString("group"));
|
||||
}
|
||||
byte[] newGroupId = m.sendUpdateGroupMessage(groupId, ns.getString("name"), ns.getList("member"), ns.getString("avatar"));
|
||||
byte[] newGroupId = m.sendUpdateGroupMessage(groupId, ns.getString("name"), ns.<String>getList("member"), ns.getString("avatar"));
|
||||
if (groupId == null) {
|
||||
System.out.println("Creating new group \"" + Base64.encodeBytes(newGroupId) + "\" …");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue