Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disappearing / expiring group chat messages #587

Open
2 tasks done
travelvice opened this issue Sep 17, 2024 · 1 comment
Open
2 tasks done

Disappearing / expiring group chat messages #587

travelvice opened this issue Sep 17, 2024 · 1 comment

Comments

@travelvice
Copy link

travelvice commented Sep 17, 2024

The problem

My Signal CLI device was not respecting the message expiration timer in group chats. The secondary CLI device is sending alerts to a group channel, and while the other members of the channel have their messages disappear as expected the untouched message history is made visible when logged into Signal Android with the primary device.

I found references that this was touched on a few years ago, but didn't see any matching documentation in this project's API:

AsamK/signal-cli#620
https://github.com/AsamK/signal-cli/blob/master/man/signal-cli.1.adoc

updateGroup
-e EXPIRATION_SECONDS, --expiration EXPIRATION_SECONDS
Set expiration time of messages (seconds). To disable expiration set expiration time to 0.

Although undocumented I passed the following body to the PUT /v1/groups/{number}/{groupid} endpoint and I believe it's having the correct impact (but needs more testing).

{
  "EXPIRATION_SECONDS": "86400"
}

Hoping to both confirm this was correct and the setting will remain sticky and respected for the secondary CLI device and if so hopefully get it documented. Thanks!

Are you using the latest released version?

  • Yes

Have you read the troubleshooting page?

  • Yes

What type of installation are you running?

signal-cli-rest-api Docker Container

In which mode are you using the docker container?

JSON-RPC Mode

What's the architecture of your host system?

x86-64

Additional information

No response

@bbernhard
Copy link
Owner

There's no option yet, but it should be pretty easy to add. I'll have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants