Files
tatuchat/lib/utils/verified_room_extension.dart
Welton Moura 0037b0b9cf
Some checks failed
Main Deploy Workflow / deploy_web (push) Has been cancelled
Main Deploy Workflow / deploy_playstore_internal (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled
Initial commit
2026-09-11 15:59:56 -03:00

16 lines
437 B
Dart

// SPDX-FileCopyrightText: 2019-Present Christian Kußowski
// SPDX-FileCopyrightText: 2019-Present Contributors to FluffyChat
//
// SPDX-License-Identifier: AGPL-3.0-or-later
import 'package:matrix/matrix.dart';
extension VerifiedRoomExtension on Room {
bool get allUsersVerified {
final users = getParticipants();
return !users.any(
(user) => client.userDeviceKeys[user.id]?.masterKey?.verified != true,
);
}
}