mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Improve JSON-RPC subscribeReceive method with subscription id
This commit is contained in:
parent
e5a8cdb056
commit
be0993c5d8
9 changed files with 158 additions and 43 deletions
|
@ -46,6 +46,14 @@ public class DbusMultiAccountManagerImpl implements MultiAccountManager {
|
|||
.toList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Manager> getManagers() {
|
||||
return signalControl.listAccounts()
|
||||
.stream()
|
||||
.map(a -> (Manager) new DbusManagerImpl(getRemoteObject(a, Signal.class), connection))
|
||||
.toList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addOnManagerAddedHandler(final Consumer<Manager> handler) {
|
||||
synchronized (onManagerAddedHandlers) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue