-
Notifications
You must be signed in to change notification settings - Fork 23
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
Leaving group deletes the group dialog from dialog list #62
Comments
Please add more details what functionality you need. Do you want leave dialog in list but without possibility to write here? What expected behavior with this dialog you need after reinstall app and relogin user? Or you need another functionality? |
I want the dialog to exist in list with the message history, till user left the group. He should be avle to see past messages that were send before leaving group. But he should not be allowed to message further to that group or receive message from that group |
For it you can mark this dialog as 'archived' locally. Then disable push notifications for dialog using this docs. In messages listener you can ignore messages for this dialog and skip loading of new messages for this dialog after oppening it. |
How can I archive locally? I have no idea on this
…On Thu, 18 Jun 2020, 11:25 pm TatankaConCube, ***@***.***> wrote:
For it you can mark this dialog as 'archived' locally. Then disable push
notifications for dialog using this docs
<https://developers.connectycube.com/android/messaging?id=chat-notifications-settings>.
In messages listener you can ignore messages for this dialog and skip
loading of new messages for this dialog after oppening it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDBHBCGKCTSJTFGCFBQYWDRXJIJJANCNFSM4OB7IKEA>
.
|
It depends on your preferences, you can add field to local DB or add field in Shared preferences to store ids of 'archived' dialogs. Or if you need this information after relogin user, you can store list of ids of 'archived' dialog to user's 'customData' field. |
I am developing chat app, which contain 1-1 messaging and group chat. When a user leaves the group, group dialog is removed from the dialog list.
I want to get the group dialog with the messages till the time, user leaves the group as in whatsapp.
Is there a way to keep the dialog in the list with messages till the time user leaves the group?
The text was updated successfully, but these errors were encountered: