ConnectyCube / android-messenger-app

Chat and voice / video calling app using ConnectyCube
https://connectycube.com
Apache License 2.0
52 stars 23 forks source link

Random string instead of user name in chat push notification #89

Closed jddeep closed 3 years ago

jddeep commented 3 years ago

This happens while the opponent sends a message for the first time.

WhatsApp Image 2021-05-10 at 15 06 31

jddeep commented 3 years ago

@TatankaConCube Please have a look at this

TatankaConCube commented 3 years ago

@jddeep as you can see from code:

        val dialog: Chat? = chtRepository.getChatSync(dialogId!!)
        val dialogName = dialog?.name ?: dialogId

you will see dialogId if you don't have a dialog with dialogId in your local DB. So it is expected behavior.

jddeep commented 3 years ago

@TatankaConCube Any suggestions to how to fix this at all?

jddeep commented 3 years ago

@TatankaConCube any leads?

TatankaConCube commented 3 years ago

you can request the dialog from the server, but it takes some time and you will show notification with some delay.