mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
getAccount added
This commit is contained in:
parent
f2c7c60669
commit
189ca2eb61
2 changed files with 7 additions and 0 deletions
|
@ -93,6 +93,8 @@ public interface Signal extends DBusInterface {
|
|||
|
||||
boolean isMember(final byte[] groupId) throws Error.InvalidGroupId;
|
||||
|
||||
String getAccount();
|
||||
|
||||
byte[] joinGroup(final String groupLink) throws Error.Failure;
|
||||
|
||||
class MessageReceived extends DBusSignal {
|
||||
|
|
|
@ -477,6 +477,11 @@ public class DbusSignalImpl implements Signal {
|
|||
return group.isMember(m.getSelfRecipientId());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAccount() {
|
||||
return m.getUsername();
|
||||
}
|
||||
|
||||
private static void checkSendMessageResult(long timestamp, SendMessageResult result) throws DBusExecutionException {
|
||||
var error = ErrorUtils.getErrorMessageFromSendMessageResult(result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue