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

Leaving group deletes the group dialog from dialog list #62

Closed
payalgoyal opened this issue Jun 18, 2020 · 5 comments
Closed

Leaving group deletes the group dialog from dialog list #62

payalgoyal opened this issue Jun 18, 2020 · 5 comments

Comments

@payalgoyal
Copy link

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?

@TatankaConCube
Copy link
Contributor

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?

@payalgoyal
Copy link
Author

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

@TatankaConCube
Copy link
Contributor

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.

@payalgoyal
Copy link
Author

payalgoyal commented Jun 19, 2020 via email

@TatankaConCube
Copy link
Contributor

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.

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