You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi there , i'm using your library with kotlin but when trying to receive message from remote the app crash with lateinit property user has not been initialized
and the error reference to this line lateinit var user: IChatUser in Message class
library version 2.0.1
any solution ?
The text was updated successfully, but these errors were encountered:
the IChatUser is an interface, you need to implement it in your user class open class User : IChatUser
And in the message setUser you need to insert your user (I had to add as IChatUser for it to work).
val me = User.sharedUser as IChatUser
val message: Message = Message.Builder()
.setUser(me)
.setRight(true)
.setText(chatView.inputText)
.hideIcon(true)
.build()
logger.debug { message }
hi there , i'm using your library with kotlin but when trying to receive message from remote the app crash with lateinit property user has not been initialized
and the error reference to this line lateinit var user: IChatUser in Message class
library version 2.0.1
any solution ?
The text was updated successfully, but these errors were encountered: