File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -298,14 +298,16 @@ def _on_room_event(self, event: proto_room.RoomEvent):
298
298
self .emit ('connection_quality_changed' ,
299
299
participant , event .connection_quality_changed .quality )
300
300
elif which == 'data_received' :
301
- rparticipant = self .participants [event .data_received .participant_sid ]
302
301
owned_buffer_info = event .data_received .data
303
302
buffer_info = owned_buffer_info .data
304
303
native_data = ctypes .cast (buffer_info .data_ptr ,
305
304
ctypes .POINTER (ctypes .c_byte
306
305
* buffer_info .data_len )).contents
306
+
307
307
data = bytearray (native_data )
308
308
FfiHandle (owned_buffer_info .handle .id )
309
+ if event .data_received .participant_sid :
310
+ rparticipant = self .participants [event .data_received .participant_sid ]
309
311
self .emit ('data_received' , data ,
310
312
event .data_received .kind , rparticipant )
311
313
elif which == 'e2ee_state_changed' :
You can’t perform that action at this time.
0 commit comments