Commit Graph

565 Commits

Author SHA1 Message Date
Bernhard B
eee69c3ad7 updated signal-cli to version 0.12.7 2023-12-15 19:39:04 +01:00
Bernhard B
3d7b73560a fixed bug in golang channel handling (json-rpc mode)
* golang channels are meant to be 1:1 channels, so if multiple
  goroutines listen on the same channel for messages, only one will
  receive the message and the others are not, which lead to lost
  messages.

  In order to fix that, we create a dedicated golang channel for every
  websocket connection.

see #451
2023-12-11 22:18:23 +01:00
Bernhard B
844f1d7b91 bumped signal-cli version to v0.12.6 2023-12-11 20:05:21 +01:00
Bernhard B
f564cffd67 Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2023-12-01 21:33:18 +01:00
Bernhard B
13236b7c66 added /v1/rate-limit-challenge endpoint
see #456
2023-12-01 21:29:00 +01:00
Bernhard B
e9503a2196 Merge pull request #459 from charles37/FixTypo
Fixed a Typo in endpointNotSupportedInJsonRpcMode
2023-11-28 23:21:01 +01:00
Benjamin Prevor
e4b2d21588 fix typo in endpointNotSupportedInJsonRpcMode 2023-11-27 11:33:42 -05:00
Bernhard B
6f2fadf5ac updated golang to version 1.21 2023-11-24 22:17:22 +01:00
Bernhard B
e4a21509c9 Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2023-11-24 22:12:57 +01:00
Bernhard B
7188730dd6 updated signal-cli to v0.12.5 2023-11-24 22:12:23 +01:00
Bernhard B
bdf55a5cf7 Merge pull request #450 from marvinruder/master
Use JRE for runtime container
2023-11-16 23:13:14 +01:00
Marvin A. Ruder
95be54729a Use JRE for runtime container
Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
2023-11-16 22:33:50 +01:00
Bernhard B
63c767e088 Merge pull request #447 from kxait/get_accounts
Get list of accounts
2023-11-13 18:08:07 +01:00
Bernhard B
e446c8f89b Merge pull request #445 from kxait/jsonrpc_linkdevice
Link device in JSON-RPC mode
2023-11-13 18:01:28 +01:00
Tomek Osika
385a591b32 get accounts 2023-11-12 02:19:13 +01:00
Tomek Osika
3ea7949c10 also reload config after device was linked successfully 2023-11-11 22:23:26 +01:00
Tomek Osika
4444beaf98 link device in json-rpc mode 2023-11-11 14:34:47 +01:00
Bernhard B
c493655f14 Merge pull request #434 from bbernhard/multimaster_mode
Multimaster mode
2023-10-30 20:03:28 +01:00
Bernhard B
b36d28f2c7 Merge pull request #432 from kxait/update_group_name
Allow updating group name
2023-10-30 20:02:42 +01:00
Bernhard B
6feb7078f1 improved misleading comment 2023-10-30 20:00:16 +01:00
Bernhard B
512458b202 json-rpc mode: fixed bug in register endpoint + added verify endpoint 2023-10-30 19:56:01 +01:00
Bernhard B
a06a9f873b switched implementation to multi-account mode
* instead of starting signal-cli in json-rpc mode with the '-u',
  we start signal-cli without the '-u' parameter (also known as
  multi-account mode). This makes it possible to register a number in
  json-rpc mode.
2023-10-30 14:49:11 +01:00
Tomek Osika
56eaa7b79b update group name 2023-10-29 17:04:52 +01:00
Bernhard B
0cab12c49d added spoiler to textstyleparser 2023-10-28 18:53:25 +02:00
Bernhard B
54fd4db81e updated signal-cli to version 0.12.4 2023-10-25 18:31:09 +02:00
Bernhard B
fa91a58bf2 fixed bug in response parsing
* strip info and warn messages from output
2023-10-19 20:19:16 +02:00
Bernhard B
58ee22e280 bumped graalvm to version 22.3.3
* bump was needed, as the native build was failing otherwise.
2023-10-19 19:45:55 +02:00
Bernhard B
2dd1668819 fixed URL to signal-cli source code 2023-10-19 19:03:52 +02:00
Bernhard B
bf905984d4 Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2023-10-19 18:42:05 +02:00
Bernhard B
b77956530d updated signal-cli to version 0.12.3 2023-10-19 18:41:04 +02:00
Bernhard B
c83768a30b Merge branch 'graalvm_fix' 2023-10-19 18:40:44 +02:00
Bernhard B
9f4bf03b77 reverted graalvm back to 22.3.0 to work around some issues with missing
CPU features

see #425
2023-10-12 21:16:25 +02:00
Bernhard B
b45aab70a7 improved REST API documentation 2023-10-07 11:29:41 +02:00
Bernhard B
9e09775d94 implemented "sendContacts" functionality
see #416
2023-10-07 11:18:16 +02:00
Bernhard B
07aee21672 handle multicharacter emojis in textstyleparser
see #413
2023-10-06 19:11:07 +02:00
Bernhard B
8271d53746 fixed small bug in cli client 2023-10-05 21:16:40 +02:00
Bernhard B
bc74d4cb48 add debug logging to cli client
* log the stdout & stderr buffers in case debug logging is enabled.

see #412
2023-10-05 18:02:57 +02:00
Bernhard B
6f269d3e1d improved error handling in send method
* when a message is successfully sent, signal-cli returns a timestamp,
  which we convert to an integer. in case, we, for some reason can't
  convert the timestamp to an integer, it means that signal-cli returned
  some non-numeric characters as well (which is a strong indication that
  there was an error). So, instead of returning the parsing error,
  return the actual signal-cli error message.

see #412
2023-10-04 20:44:42 +02:00
Bernhard B
661fe568e2 json-rpc mode: fixed bug in group deletion
* deleting a group in json-rpc mode didn't work.

see #387
2023-10-04 19:07:17 +02:00
Bernhard B
b39980e66b added possibility to update the group description & the avatar
see #417
2023-10-03 19:49:36 +02:00
Bernhard B
2474238cb5 fixed typo in struct definition 2023-10-03 19:29:26 +02:00
Bernhard B
fc2982c25f fixed crash in create group request
see #410
2023-10-03 19:28:26 +02:00
Bernhard B
08959a9d69 fixed signal-cli-native version 2023-10-02 21:37:20 +02:00
Bernhard B
6123cbb4c3 updated libsignal-client to v0.32.1 2023-10-02 20:39:57 +02:00
Bernhard B
3ca898196e improved error checking in Dockerfile 2023-10-02 20:39:16 +02:00
Bernhard B
31048fd6a3 updated signal-cli to version 0.12.2 2023-10-02 20:38:57 +02:00
Bernhard B
f18ebde951 fixed signal-cli-native build
* due to different glibc versions, it is not possible to use the
  existing (prebuilt) libsignal_jni.so that get's shipped with the
  signal-cli binary distribution for the signal-cli native image build.
  So in order to make that work (again), we need to use our own
  libsignal_jni.so for the x86_64 build.

see #412
2023-10-02 19:03:52 +02:00
Bernhard B
db005cdcc3 updated GraalVM to fix broken native image build 2023-09-29 19:42:02 +02:00
Bernhard B
4f3ebf0bfc fixed bug in create group endpoint
link & permissions weren't correctly set

see #410
2023-09-26 22:30:43 +02:00
Bernhard B
f21925ea74 updated filepath-securejoin to v0.2.4 to fix a potential security issue
on windows
2023-09-23 19:00:54 +02:00