Skip to content

Instantly share code, notes, and snippets.

@syntaxxxxx
Created April 12, 2022 23:12
Show Gist options
  • Save syntaxxxxx/3d16196c7f042ed1a5ec03aa6a243ef2 to your computer and use it in GitHub Desktop.
Save syntaxxxxx/3d16196c7f042ed1a5ec03aa6a243ef2 to your computer and use it in GitHub Desktop.
qiscusMultichannelWidget.setUser(
profile?.id ?: "0",
"${profile?.firstName} ${profile?.lastName}",
""
)
qiscusMultichannelWidget.initiateChat().setChannelId(125149).startChat(
requireContext(),
object : QiscusChatRoomBuilder.InitiateCallback {
override fun onProgress() {
TODO("Not yet implemented")
}
override fun onSuccess(qChatRoom: QChatRoom) {
Timber.d("hai fiqri")
viewModel?.getAllChatRooms()
}
override fun onError(throwable: Throwable) {
TODO("Not yet implemented")
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment