fix: filter list for adding p2p call events
This commit is contained in:
parent
380963e87a
commit
aa03f5aa06
|
|
@ -1981,8 +1981,12 @@ class Client extends MatrixApi {
|
||||||
if (prevBatch != null &&
|
if (prevBatch != null &&
|
||||||
(type == EventUpdateType.timeline ||
|
(type == EventUpdateType.timeline ||
|
||||||
type == EventUpdateType.decryptedTimelineQueue)) {
|
type == EventUpdateType.decryptedTimelineQueue)) {
|
||||||
if (update.content.tryGet<String>('type')?.startsWith('m.call.') ??
|
if ((update.content.tryGet<String>('type')?.startsWith('m.call.') ??
|
||||||
false) {
|
false) ||
|
||||||
|
(update.content
|
||||||
|
.tryGet<String>('type')
|
||||||
|
?.startsWith('org.matrix.call.') ??
|
||||||
|
false)) {
|
||||||
final callEvent = Event.fromJson(update.content, room);
|
final callEvent = Event.fromJson(update.content, room);
|
||||||
final callId = callEvent.content.tryGet<String>('call_id');
|
final callId = callEvent.content.tryGet<String>('call_id');
|
||||||
callEvents.add(callEvent);
|
callEvents.add(callEvent);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue