mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
some small dbus return code fixes (#556)
* some small dbus return code fixes * Added DBus manpage * changed getDisplayName behaviour * reverted change in manager
This commit is contained in:
parent
2ea56a1b67
commit
a7b414a870
4 changed files with 5 additions and 3 deletions
|
@ -333,6 +333,9 @@ public class DbusSignalImpl implements Signal {
|
|||
public void joinGroup(final String groupLink) {
|
||||
try {
|
||||
final var linkUrl = GroupInviteLinkUrl.fromUri(groupLink);
|
||||
if (linkUrl == null) {
|
||||
throw new Error.Failure("Group link is invalid:");
|
||||
}
|
||||
m.joinGroup(linkUrl);
|
||||
} catch (GroupInviteLinkUrl.InvalidGroupLinkException | GroupLinkNotActiveException e) {
|
||||
throw new Error.Failure("Group link is invalid: " + e.getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue