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

Multiple logins not working in Single device #6

Closed
Mohsin92 opened this issue Oct 8, 2018 · 3 comments
Closed

Multiple logins not working in Single device #6

Mohsin92 opened this issue Oct 8, 2018 · 3 comments

Comments

@Mohsin92
Copy link

Mohsin92 commented Oct 8, 2018

I tried with demo and run on single device with separate login
but both time its shows as single user only chatting.

e.g:
Login with superhero1 in cometchat and chat with superhero2
now i am login with superhero2 but I can see same list or chat which is done in superhero1
its visible on right side only.
please guide me with this issue.

@jitvarpatil jitvarpatil self-assigned this Oct 9, 2018
@jitvarpatil
Copy link
Contributor

You can implement the following method to clear the data manually.

private static void clearDataBase() {
SugarRecord.deleteAll(OneOnOneMessage.class);
SugarRecord.deleteAll(Groups.class);
SugarRecord.deleteAll(Conversation.class);
SugarRecord.deleteAll(GroupMessage.class);
SugarRecord.deleteAll(Status.class);
SugarRecord.deleteAll(Contact.class);
SugarRecord.deleteAll(Bot.class);
}

You can call the above method in the success of login. We will be fixing this issue in the upcoming release and it will be handled by CometChat SDK.

@Mohsin92
Copy link
Author

Mohsin92 commented Oct 9, 2018

@jitvarpatil : Thank you for this solution it works
but please tel me when new version for Comet Chat will release ?

@jitvarpatil
Copy link
Contributor

The new version with this fix will be out next week. Feel free to contact us if you have any other queries.

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