mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Add helper method to create valid dbus object path
This commit is contained in:
parent
c852bd8a85
commit
d0d3e20713
3 changed files with 18 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
|||
package org.asamk.signal;
|
||||
|
||||
import org.asamk.signal.dbus.DbusUtils;
|
||||
|
||||
public class DbusConfig {
|
||||
|
||||
private static final String SIGNAL_BUSNAME = "org.asamk.Signal";
|
||||
|
@ -18,6 +20,6 @@ public class DbusConfig {
|
|||
return SIGNAL_OBJECT_BASE_PATH;
|
||||
}
|
||||
|
||||
return SIGNAL_OBJECT_BASE_PATH + "/" + account.replace('+', '_');
|
||||
return SIGNAL_OBJECT_BASE_PATH + "/" + DbusUtils.makeValidObjectPathElement(account);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue