getAccount added

This commit is contained in:
Adimarantis 2021-09-05 21:14:46 +02:00
parent f2c7c60669
commit 189ca2eb61
2 changed files with 7 additions and 0 deletions

View file

@ -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 {

View file

@ -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);