Commit graph

493 commits

Author SHA1 Message Date
AsamK
644aacf595 Update libsignal 2021-01-23 12:59:47 +01:00
AsamK
6f4b171683 Request storage key after linking 2021-01-19 17:04:02 +01:00
AsamK
eae516a9a7 Fix issue with incorrectly saving signalingKey
Fixes #442, #447
2021-01-19 16:58:28 +01:00
AsamK
c3c1802b4d Store storage key from keys sync message 2021-01-18 20:33:04 +01:00
AsamK
80e15ad54e Only allow setting PIN by master device 2021-01-18 20:29:01 +01:00
AsamK
f4ed9a01b7 If contact name is not set, print profile name instead 2021-01-18 20:28:25 +01:00
AsamK
804ad34a08 Send and handle fetch profile sync message 2021-01-17 17:38:33 +01:00
AsamK
70690fef36 Use getRegisteredUsers instead of getContacts for updating v1 group
Fixes #437
2021-01-17 16:52:10 +01:00
AsamK
c440520ea6 Ignore relay in json output if null 2021-01-17 12:36:11 +01:00
AsamK
a28ad7195c Add remote delete info to json output
Fixes #424
2021-01-17 11:57:46 +01:00
AsamK
3b29add396 Add typing message to json output
Fixes #423
2021-01-17 11:43:39 +01:00
AsamK
5a2c4b8dfd Add viewOnce boolean to json data message 2021-01-17 11:29:11 +01:00
AsamK
46a4c2c0d0 Make fields in json classes final and omit unnecessary nulls when serializing
Fix sender in sync read messages
2021-01-17 11:23:02 +01:00
AsamK
dd4225dcb1 Rename Cli class to App 2021-01-16 21:20:12 +01:00
AsamK
a2debdb234 Check if output type is supported by command 2021-01-16 21:12:01 +01:00
AsamK
c588130491 Fix group info for json dbus messages 2021-01-16 20:12:24 +01:00
AsamK
690ce2829f Fix logger names 2021-01-16 20:11:50 +01:00
AsamK
03bf043959 Extract JsonWriter for json output 2021-01-16 20:11:32 +01:00
AsamK
d4b4bd8603 Add an enum for output types 2021-01-16 18:52:06 +01:00
AsamK
14c8f07b8d Move buildArgumentParser to Cli class 2021-01-16 18:09:29 +01:00
AsamK
fe25ae275b Use getRegisteredUsers (CDS2) instead of getContacts for getUserStatus command
That's what the official app does, looks like the old contact discovery
system is not working anymore.
2021-01-16 17:06:10 +01:00
AsamK
06404667a1 Use exit 4 when sending a single recipient message fails due to untrusted identity key
Fixes #88
2021-01-16 15:38:38 +01:00
AsamK
e1134d832a Send self messages as normal messages, new flag --note-to-self for sync message
Fixes #373
2021-01-16 11:56:41 +01:00
AsamK
b31e97dd2d Move recipients/group argument check to send commands 2021-01-16 10:21:38 +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
a97bbf8608 Improve logging for provisioning 2021-01-16 09:00:03 +01:00
AsamK
c0f5ff8805 Prevent incorrect error log about saving failed if an exception was thrown 2021-01-16 09:00:03 +01:00
AsamK
9a775171b5 Replace Base64 class from libsignal with java.util.Base64 2021-01-15 22:32:13 +01:00
AsamK
8d985d84fb Set log level to debug for verbose mode 2021-01-15 18:29:48 +01:00
AsamK
54a2a95fb5 Fix loading some account files without legacy store 2021-01-15 18:29:48 +01:00
AsamK
fc76c9badf Remove unnecessary isRegistered checks 2021-01-15 12:21:19 +01:00
AsamK
cc40c437d1 Use global output flag for daemon command 2021-01-15 12:09:37 +01:00
AsamK
5938d54784 Add --verbose flag to show extended logging
Fixes #379
2021-01-15 11:43:53 +01:00
AsamK
20681b8d89 Extract some utils from manager 2021-01-14 22:19:54 +01:00
AsamK
c95897d17b Fix file name for contact avatars 2021-01-14 21:26:20 +01:00
AsamK
96d316b1dd Create an AttachmentStore 2021-01-14 21:26:01 +01:00
AsamK
9bb935b11f Always include profile key in direct messages
Adjusts behavior to official client

Fixes #416
2021-01-14 18:41:21 +01:00
Atomic-Bean
9bba7a85ab
Added sticker field to json output. Also added hidden mac file to .gitignore (#418) 2021-01-14 18:10:35 +01:00
AsamK
a643609ed2 Create an AvatarStore 2021-01-13 22:35:58 +01:00
AsamK
6bd857ad8b Always delete temporary files on exit 2021-01-13 20:56:23 +01:00
AsamK
0624d6a808 Make loggers private 2021-01-13 20:19:34 +01:00
AsamK
783c88cb6a Ignore group message if the sender is not in the group 2021-01-13 19:13:03 +01:00
AsamK
f0834c7a47 Reformat man doc and clarify help text 2021-01-13 17:04:58 +01:00
Atomic-Bean
90f5cd79c9
Added JSON output to listGroups and allowed json to be activated with -j (#401)
* Added json output to listGroups and allowed json to be activated with -j

* Renamed classes

* Added AsamK's suggestions

* Removed isRegisted check since that is causing a conflict with upstream

* Fixed an issue in the help message for listGroupsCommand

* Re-enabled --json for receive and getUserStatuses commands as deprecated

* Added better depricated warning message and clarified some java doc stuff
2021-01-13 16:51:31 +01:00
AsamK
c9fa28d844 Extract pre key generation to KeyUtils 2021-01-12 20:40:17 +01:00
AsamK
bc47c0d5d6 Refactor message cache 2021-01-11 21:18:03 +01:00
AsamK
38267fa2a1 Update copyright notices 2021-01-11 19:51:24 +01:00
AsamK
e74be0c345 Refactor register and verify 2021-01-10 23:06:13 +01:00
AsamK
6c8a1ff3d3 Check for null query when decoding device link uri 2021-01-10 23:06:13 +01:00
AsamK
263fdceb94 Fix expectedV2Id serialization 2021-01-10 23:06:13 +01:00