AiursoftWeb / Kahla

Mirror of https://gitlab.aiursoft.cn/aiursoft/Kahla
https://www.kahla.app
Other
70 stars 21 forks source link

This pull request allows the user to set the conversation max message lifetime. #46

Closed Anduin2017 closed 5 years ago

Anduin2017 commented 5 years ago

Server will check all messages every 1 minute.

If the server found any messages out of its lifetime, the server will delete it directly!

Creat a new API to update the lifetime.

Lifetime is a number, represents seconds, from 5 to 50 years. Only users in that conversation could update it.

When calling Conversation details API, will return lifetime.

When calling Conversation details API, will return lifetime.

When selecting messages, only messages alive can be selected

Which means there will be no push messages when your message was deleted! So in the app side, when the user opens the talking page and the app can load the conversation message max time.

The talking page shall only display the messages in life. Which means with time elapse, the messages shall disappear automatically.