Commit graph

46 commits

Author SHA1 Message Date
AsamK
9ffacfe90e Add --ignore-stories flag to prevent receiving story messages 2022-10-19 19:11:37 +02:00
AsamK
27dbc671e0 Add option to send read receipts for all received data messages
Fixes #850
2022-05-26 18:00:23 +02:00
AsamK
fd92a96e1a Wrap ignoreAttachments option in a ReceiveConfig record 2022-05-26 17:53:14 +02:00
AsamK
425e451237 Update dbus-java 2022-05-26 15:01:36 +02:00
AsamK
1ffb6d6907 Handle UnsupportedOperationException in daemon command 2022-02-20 14:22:53 +01:00
AsamK
3f582e9c2e Prevent a stale jsonrpc connection from interfering with message receiving
Fixes #893
2022-02-19 18:47:11 +01:00
AsamK
ccce539843 Improve error messages when daemon is already running 2022-02-13 20:08:30 +01:00
AsamK
f207c2abc3 Reexport dbus objects when self number changes 2022-02-11 21:03:54 +01:00
AsamK
be0993c5d8 Improve JSON-RPC subscribeReceive method with subscription id 2022-02-01 20:59:49 +01:00
AsamK
380c892e24 Add more informative thread names 2022-01-29 15:05:14 +01:00
AsamK
62687d103f Replace collect(Collectors.toList()) with toList() 2021-12-11 13:10:39 +01:00
AsamK
fc8b6d0fcb Clean up base package 2021-11-14 15:00:06 +01:00
AsamK
c73c58723c Implement unregister command for jsonrpc and dbus daemon 2021-11-12 16:07:35 +01:00
AsamK
4a1af0786c Add MultiAccountManager 2021-11-11 16:10:22 +01:00
AsamK
9c67aabebb Add JsonRpcMultiCommand 2021-11-10 20:12:27 +01:00
AsamK
81a11dc977 Implement socket/tcp for daemon command 2021-11-10 12:12:35 +01:00
John Freed
8a216e3245 Implement configuration properties for dbus
Closes #759

commit 169bb518bf
Author: John Freed <okgithub@johnfreed.com>
Date:   Fri Oct 15 08:53:34 2021 +0200

    remove org.asamk.signal.manager.api.Configuration

commit 27ecfee382
Author: John Freed <okgithub@johnfreed.com>
Date:   Fri Oct 15 08:40:13 2021 +0200

    add a DBus "daemon running" indicator

commit 94b3d9e2ed
Author: John Freed <okgithub@johnfreed.com>
Date:   Fri Oct 15 08:20:03 2021 +0200

    changing most DBus logger.info to logger.debug

commit 15da060127
Author: John Freed <okgithub@johnfreed.com>
Date:   Fri Oct 15 00:09:26 2021 +0200

    Configuration for Dbus and main

    Main program subcommand
    - fix logic to take into account previously unset flags
    - provide output in json and plain-text formats

    new Dbus Properties:
    - ConfigurationReadReceipts
    - ConfigurationUnidentifiedDeliveryIndicators
    - ConfigurationTypingIndicators
    - ConfigurationLinkPreviews

    removed getConfiguration and setConfiguration methods

    updated documentation

commit 09da3aae62
Merge: 3c40b11 18ad9fb
Author: John Freed <okgithub@johnfreed.com>
Date:   Thu Oct 14 15:24:07 2021 +0200

    Merge branch master into dbus_updateConfiguration

commit 3c40b11b8a
Merge: 8416d4a cadcc6c
Author: John Freed <okgithub@johnfreed.com>
Date:   Sat Oct 9 14:08:08 2021 +0200

    Merge branch master into dbus_updateConfiguration

commit 8416d4ac47
Author: John Freed <okgithub@johnfreed.com>
Date:   Mon Oct 4 08:48:56 2021 +0200

    Dbus get/setConfiguration methods

    implement:

    - getConfiguration() -> [readReceipts<b>, unidentifiedDeliveryIndicators<b>, typingIndicators<b>, linkPreviews<b>] -> <>::

    - setConfiguration(readReceipts<b>, unidentifiedDeliveryIndicators<b>, typingIndicators<b>, linkPreviews<b>) -> <>::

    Update documentation
2021-11-07 10:59:14 +01:00
AsamK
204aa31885 Refactor dbus receive message handler 2021-10-30 13:30:58 +02:00
AsamK
fc0a9b4102 Move receive thread handling to manager 2021-10-22 17:39:33 +02:00
AsamK
5c389c875d Split receiveMessages method 2021-10-21 21:19:14 +02:00
AsamK
f5ba7894ae Add setIgnoreAttachments method 2021-10-21 21:01:48 +02:00
AsamK
778adacb80 Refactor dbus linked devices interface
Export a separate dbus object for each device
2021-10-02 18:04:30 +02:00
AsamK
c9f5550d18 Remove workaround for getBoolean from JsonRpcLocalCommand 2021-09-30 19:36:31 +02:00
AsamK
d72b838560 Refactor Manager interface 2021-09-28 21:13:02 +02:00
AsamK
2044a7d7a5 Print stack trace of exception causes in verbose mode 2021-09-08 20:38:24 +02:00
AsamK
6dd1a21606 Handle queued actions also when thread is interrupted 2021-08-23 14:39:40 +02:00
AsamK
af292d8f0e Refactor command creation 2021-08-20 18:42:38 +02:00
AsamK
a8bbdb54d0 Implement jsonRpc command
Co-authored-by: technillogue <technillogue@gmail.com>

Closes #668
2021-08-10 18:16:50 +02:00
AsamK
8f781c019f Add dbus SignalControl interface to register/verify/link accounts 2021-08-08 18:43:14 +02:00
AsamK
48b2c7ff8a Refactor output writers 2021-08-08 17:32:55 +02:00
AsamK
17d00d6ca8 Remove deprecated --json parameter 2021-08-08 10:44:23 +02:00
AsamK
b8a0901fbd Improve command line help
Fixes #450
2021-05-20 20:54:11 +02:00
AsamK
8e8eed7b06 Update argparse4j 2021-05-13 18:06:57 +02:00
AsamK
221d937eec Add CommandException to abstract cli return codes for errors 2021-02-23 21:42:42 +01:00
AsamK
de273586b4 Use var instead of explicit types 2021-02-21 15:01:41 +01:00
AsamK
a2debdb234 Check if output type is supported by command 2021-01-16 21:12:01 +01:00
AsamK
690ce2829f Fix logger names 2021-01-16 20:11:50 +01:00
AsamK
d4b4bd8603 Add an enum for output types 2021-01-16 18:52:06 +01:00
AsamK
ca86c421eb Allow calling signal-cli without -u flag
For daemon command all local users will be exposed as dbus objects
If only one local user exists, all other commands will use that user,
otherwise a user has to be specified.
2021-01-16 09:00:03 +01:00
AsamK
cc40c437d1 Use global output flag for daemon command 2021-01-15 12:09:37 +01:00
AsamK
e74be0c345 Refactor register and verify 2021-01-10 23:06:13 +01:00
AsamK
591c0fe8a3 Reformat project 2020-12-08 20:59:20 +01:00
AsamK
1e0aa8929d Separate DbusSignal implementation from Manager 2020-05-15 23:11:18 +02:00
AsamK
00777a469c Switch to hypfvieh dbus-java
Removes transitive dependency on libmatthew-unix-java

Fixes #285
2020-05-06 09:13:49 +02:00
AsamK
b2efef4d8c Reformat imports 2019-10-16 19:27:42 +02:00
AsamK
f60a10eb6e Split commands into separate classes 2018-11-20 23:19:39 +01:00