Commit Graph

656 Commits

Author SHA1 Message Date
Bernhard B
e1ea5932c9 re-build swagger documentation 2024-08-20 21:44:11 +02:00
Bernhard B.
4bf70dd456 Merge pull request #573 from ahatius/master
Add support to disable notify-self flag on /v2/send endpoint
2024-08-20 21:43:26 +02:00
Bernhard B
e6ff51e3d8 fixed deadlock in json-rpc mode
* properly unlock mutex to avoid deadlock

see #572
2024-08-09 23:03:22 +02:00
ahatius
8cd60ff6c3 Add support to disable notify-self flag on /v2/send endpoint 2024-08-07 18:54:24 +02:00
Bernhard B
f3289395ae fixed deadlock in Websocket write
* properly unlock mutex to avoid deadlock

see #572
2024-08-07 17:07:12 +02:00
Bernhard B.
a6624c5dee Merge pull request #570 from ksangers/master
For reverse proxies, add SWAGGER_HOST environment variable support
2024-08-04 20:49:08 +02:00
Klaas Sangers
531c673b7e Add SWAGGER_HOST environment variable support
- Add `SWAGGER_HOST` environment variable to `README.md` for Swagger UI configuration.
- Update `main.go` to use `SWAGGER_HOST` environment variable for Swagger UI host configuration.
2024-08-03 16:41:13 +02:00
Bernhard B
bb246cf3f7 updated libsignal-client to v0.52.2 2024-07-28 22:41:11 +02:00
Bernhard B
30615592b3 updated signal-cli to version 0.13.5 2024-07-28 22:25:34 +02:00
Bernhard B
d1694ee88c add account to SendMessageError json response
* when a rate limiting error is returned, also include the account
  information (this is quite useful for multi account setups).

see #566
2024-07-23 20:42:29 +02:00
Bernhard B
dc1efc1a14 protect map write with mutex
* in order to make the r.receivedResponsesById map goroutine-safe, a
  mutex was added. This is not particular nice, but rewriting the
  jsonrpc connection handling would be quite a lot of work and has a
  big regression potential. So, if it is not absolutely necessary, I'd
  like to avoid that.

see #555
2024-07-09 21:27:49 +02:00
Bernhard B
cd996e1814 protect websocket write with mutex
* Gorilla Websocket only allows one concurrent writer. As there are
  multiple goroutines that could write concurrently to the websocket,
  the websocket write needs to be protected by a Mutext. This is not
  particular nice, but a complete rewrite of the connection handling
  would be quite a lot of work.

see #556
2024-07-09 21:19:49 +02:00
Bernhard B
911b686778 fixed bug in send method
* allow sending messages to the sourceUuid

see #550
2024-06-20 18:29:31 +02:00
Bernhard B
f444622397 rebuilt swagger documentation 2024-06-18 19:50:09 +02:00
Bernhard B
8929326f5f beautified code with gofmt 2024-06-18 19:49:47 +02:00
Bernhard B
e7ebd010a3 Merge pull request #549 from tactilenews/expose_list_contacts_endpoint
Expose listContacts endpoint
2024-06-18 19:48:27 +02:00
mattwr18
ee10b6bc32 Expose listContacts endpoint 2024-06-18 18:40:32 +02:00
Bernhard B
05225a27ee fixed bug in textstyleparser
* handle multi-character emojis correctly

see #544
2024-06-17 20:33:50 +02:00
Bernhard B
db4554d5ff Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2024-06-06 19:58:39 +02:00
Bernhard B
7961120b96 added libsignal-client v0.47.0 2024-06-06 19:54:12 +02:00
Bernhard B
7a8aae0c40 updated signal-cli-native in Dockerfile to v0.13.4+1 2024-06-06 19:28:05 +02:00
Bernhard B
a87e130ced updated libsignal-client in Dockerfile to v0.47.0 2024-06-06 19:26:55 +02:00
Bernhard B
5f8c557e44 updated signal-cli to version 0.13.4 2024-06-06 19:26:22 +02:00
Bernhard B
a6b5c566a4 Merge pull request #525 from jneidel/link-to-signal-cli-to-file
Add a link to signal-cli-to-file
2024-05-29 19:00:28 +02:00
Jonathan Neidel
c14916f43b Update READMEs clients and libraries table 2024-05-28 18:53:47 +02:00
Bernhard B
14707c7f5f Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2024-05-22 19:22:57 +02:00
Bernhard B
bbd088fc0b added username support to /v2/send endpoint 2024-05-22 19:22:39 +02:00
Bernhard B
a0cdcf0522 Merge pull request #535 from jaanli/patch-1
Fix README.md
2024-05-16 12:51:16 +02:00
Bernhard B
07a3beaa97 removed datastrutures folder again 2024-05-14 22:57:52 +02:00
Bernhard B
f2c268dfa0 improved code by splitting it up in different go files 2024-05-14 22:49:26 +02:00
Jaan Lı 李 PhD
1032a08162 Fix README.md
Fix:

without this flag, get this error:

```
~$ mkdir $HOME/.local/share/signal-api
mkdir: cannot create directory ‘/home/ubuntu/.local/share/signal-api’: No such file or directory
```
2024-05-12 13:52:03 -04:00
Bernhard B
70763ae9d9 reworked code to make it more maintainable
* added recipient type. This change is necessary to implement sending
  messages to usernames/username links.
2024-05-11 17:48:24 +02:00
Bernhard B
4b029b9e98 improved error handling
* ensure that number is provided in send receipt endpoint.
2024-05-11 17:27:54 +02:00
Bernhard B
95e0b88671 rebuilt swagger documentation 2024-05-11 17:24:34 +02:00
Bernhard B
e894cfee4a Merge pull request #534 from brettp/read-receipt-endpoint
Add endpoint support for individual read receipts
2024-05-11 17:23:45 +02:00
Brett Profitt
44cc1692a9 Add endpoint support for read receipts. 2024-05-10 20:29:57 -04:00
Bernhard B
ba532f52b8 gofmt code in utils subdirectory
* formatted code by running 'gofmt'
2024-05-07 22:31:11 +02:00
Bernhard B
a6d0858b11 Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2024-05-07 22:25:42 +02:00
Bernhard B
b274fd2e49 format code with gofmt 2024-05-07 22:25:18 +02:00
Bernhard B
6522dcf8c8 code improvements
* restructured the code a bit to make it more readable
2024-05-07 22:22:53 +02:00
Bernhard B
d2b12b8a29 Merge pull request #526 from vorwd/patch-1
Update README.md
2024-05-05 20:54:24 +02:00
vorwd
e6a6373ed9 Update README.md
included mkdir at line 25
2024-04-28 22:03:48 +10:00
vorwd
4e3fa7b322 Merge branch 'bbernhard:master' into patch-1 2024-04-28 22:02:49 +10:00
Bernhard B
193a9f1e5b update Swagger documentation 2024-04-27 19:10:28 +02:00
Bernhard B
451010c875 Merge pull request #524 from jneidel/read-receipts
Add support for read receipts on /receive
2024-04-27 19:09:56 +02:00
vorwd
b54ea16756 Update README.md
aligned initial docker example with the docker example starting at line 73.  

/home/user/signal-api:/home/.local/share/signal-cli

Having two different file paths (naming signal-api vs signal-cli) was confusing me when I was setting this up and thought it could impact others as well.
2024-04-27 15:50:25 +10:00
Jonathan Neidel
2c741b7366 Link to signal-cli-to-file 2024-04-26 22:00:06 +02:00
Jonathan Neidel
b23ee29b1f Add support for read receipts on /receive 2024-04-26 12:50:53 +02:00
Bernhard B
9d6f4a05a3 updated libsignal-client to v0.44.0 2024-04-22 20:27:16 +02:00
Bernhard B
1eb79f5df6 Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2024-04-22 18:31:26 +02:00