X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/c852bd8a85f93385d34df634e680704ec68d5b00..d0d3e207135f8625d20461b4444e12d6baa1b6b6:/src/main/java/org/asamk/signal/DbusConfig.java diff --git a/src/main/java/org/asamk/signal/DbusConfig.java b/src/main/java/org/asamk/signal/DbusConfig.java index ddd534c4..c4c923cf 100644 --- a/src/main/java/org/asamk/signal/DbusConfig.java +++ b/src/main/java/org/asamk/signal/DbusConfig.java @@ -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); } }