-
Notifications
You must be signed in to change notification settings - Fork 552
[CHORE] Update Jitsi library version #2226
Conversation
| logJitsiMeetViewState("Left video conferencing", map) | ||
| finishJitsiVideoConference() | ||
| override fun onConferenceTerminated(map: MutableMap<String, Any>?) { | ||
| if(map!!.containsKey("error")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay @filipedelimabrito
| logJitsiMeetViewState("Left video conferencing", map) | ||
| finishJitsiVideoConference() | ||
| override fun onConferenceTerminated(map: MutableMap<String, Any>?) { | ||
| if(map!!.containsKey("error")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a place where I can find all the keys like the error for the map?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@filipedelimabrito Actually the Jitsi documentation specified the keys for Map. if the onConferenceTerminated ended successfully no error key will be present else error key will be there. So based on the condition the keys will be present in the map, so here I am just checking for error key.
https://github.com/jitsi/jitsi-meet/tree/master/android#jitsimeetviewlistener
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing it out @Cool-fire.
| "url" to url | ||
| ) | ||
| ) | ||
| var options = JitsiMeetConferenceOptions.Builder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be val not var.
| override fun onConferenceTerminated(map: MutableMap<String, Any>?) { | ||
| if(!map.isNullOrEmpty()){ | ||
| if(map.containsKey("error")) { | ||
| logJitsiMeetViewState("Terminated video conferencing with error", map) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way you'll never finish the video conference if there is an error here.
philipbrito
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made the needed changes here.
Thanks for sending this PR @Cool-fire
@RocketChat/android
Changes:
Implemented the new updated
JitsiMeetViewListenermethods, removed old methods. Implementedview.joininstead of the oldview.LoadURLObject