Selaa lähdekoodia

[RN] Fix YouTube channel name list

master
Bettenbuk Zoltan 7 vuotta sitten
vanhempi
commit
554974a36d
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5
    4
      react/features/google-api/googleApi.native.js

+ 5
- 4
react/features/google-api/googleApi.native.js Näytä tiedosto

@@ -149,11 +149,12 @@ class GoogleApi {
149 149
                         let title;
150 150
 
151 151
                         // Finding title from the broadcast with the same
152
-                        // channelId. If not found (unknown scenario), we use
153
-                        // the key as title again.
152
+                        // boundStreamId. If not found (unknown scenario), we
153
+                        // use the key as title again.
154 154
                         for (const broadcast of broadcasts) {
155
-                            if (broadcast.snippet.channelId
156
-                                    === stream.snippet.channelId) {
155
+                            if (broadcast.contentDetails
156
+                                    && broadcast.contentDetails.boundStreamId
157
+                                        === stream.id) {
157 158
                                 title = broadcast.snippet.title;
158 159
                             }
159 160
                         }

Loading…
Peruuta
Tallenna