chore: Improve code.

This commit is contained in:
cloudwebrtc 2022-08-09 15:22:36 +08:00
parent 3f38a96d4f
commit f2af63685c
1 changed files with 4 additions and 2 deletions

View File

@ -69,8 +69,10 @@ class VoIP {
.listen((event) => _handleEvent(event, onAssertedIdentityReceived));
client.onRoomState.stream.listen((event) {
if (event.type == EventTypes.GroupCallMemberPrefix ||
event.type == EventTypes.GroupCallPrefix) {
if ([
EventTypes.GroupCallPrefix,
EventTypes.GroupCallMemberPrefix,
].contains(event.type)) {
Logs().v('[VOIP] onRoomState: type ${event.toJson()}.');
onRoomStateChanged(event);
}