Commit graph

384 commits

Author SHA1 Message Date
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
AsamK
51db5495c0 Fix pin hash version to match android 2021-01-10 18:16:42 +01:00
AsamK
9244d1e8a8 Disable registration lock before removing pin 2021-01-10 18:16:26 +01:00
AsamK
0c7da68d98 Download group info if it's missing in the cache 2021-01-10 15:26:45 +01:00
AsamK
88d81c7a63 Move IdentityKeyPair generation to KeyUtils
in preparation for rust libsignal which doesn't provide the method
2021-01-04 18:04:10 +01:00
AsamK
00339b1abe Improve user status command 2021-01-03 21:04:32 +01:00
Atomic-Bean
1c5de83370
Command to check if number is registered (#391)
* Added the isRegistered command

* Minor fixes

* Corrected description

* Added AsamK's suggestions

Fixes #178
2021-01-03 21:02:34 +01:00
AsamK
f1e5fc6c0b Request profiles without uuid if libzkgroup is not available
Fixes #397
2020-12-31 16:14:30 +01:00
AsamK
425626ef94 Implement registration pin lock with KBS
Fixes #323
Fixes #268
2020-12-31 15:41:00 +01:00
AsamK
a52f6a6657 Replace Collections with Set.of/Map.of/List.of 2020-12-30 16:50:17 +01:00
AsamK
bbdd6a8910 Cleanup utils 2020-12-29 23:01:58 +01:00
AsamK
b738f5740c Move storage package to manager 2020-12-29 22:15:38 +01:00
AsamK
9e6a353427 Move group classes to separate package 2020-12-29 22:09:06 +01:00
AsamK
22f19c4067 Use File instead of String 2020-12-26 18:08:01 +01:00
AsamK
5c754b6f5d Use slf4j simple logger 2020-12-26 18:07:58 +01:00
AsamK
6a82029ab4 Use base64 group id for protobuf group file to match avatar files
base64 with '/' replaced by '_'
2020-12-25 13:46:35 +01:00
AsamK
caabde4acf Fix prevention of adding group members a second time 2020-12-25 13:42:51 +01:00
AsamK
ff998fce57 Fix handling data messages of sync messages 2020-12-24 18:05:12 +01:00
AsamK
e11e020886 Retrieve group v2 avatars
Fixes #392
2020-12-24 17:53:23 +01:00
AsamK
9942d967a4 Refactor to use GroupId class to wrap the byte array
Helps distinguish between group v1 and v2 ids
2020-12-24 16:36:47 +01:00
AsamK
67f62947c6 Add null check and change some formatting 2020-12-23 11:33:01 +01:00