chore: Add more explaining text for key verification
This commit is contained in:
parent
f7c89ddf9e
commit
20c678553a
4 changed files with 33 additions and 2 deletions
|
|
@ -70,6 +70,15 @@ class ChatEncryptionSettingsController extends State<ChatEncryptionSettings> {
|
|||
}
|
||||
|
||||
void startVerification() async {
|
||||
final consent = await showOkCancelAlertDialog(
|
||||
context: context,
|
||||
title: L10n.of(context)!.verifyOtherUser,
|
||||
message: L10n.of(context)!.verifyOtherUserDescription,
|
||||
okLabel: L10n.of(context)!.ok,
|
||||
cancelLabel: L10n.of(context)!.cancel,
|
||||
fullyCapitalizedForMaterial: false,
|
||||
);
|
||||
if (consent != OkCancelResult.ok) return;
|
||||
final req = await room.client.userDeviceKeys[room.directChatMatrixID]!
|
||||
.startVerification();
|
||||
req.onUpdate = () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue