chore: Update Matrix SDK and refactor
This commit is contained in:
parent
ea874b3e43
commit
d343c71703
17 changed files with 91 additions and 50 deletions
|
|
@ -30,6 +30,7 @@ import 'package:matrix/matrix.dart';
|
|||
import 'package:vibration/vibration.dart';
|
||||
import 'package:wakelock/wakelock.dart';
|
||||
|
||||
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart';
|
||||
import 'package:fluffychat/utils/platform_infos.dart';
|
||||
import 'package:fluffychat/widgets/avatar.dart';
|
||||
import 'pip/pip_view.dart';
|
||||
|
|
@ -129,7 +130,9 @@ class Calling extends StatefulWidget {
|
|||
class MyCallingPage extends State<Calling> {
|
||||
Room? get room => call.room;
|
||||
|
||||
String get displayName => call.displayName ?? '';
|
||||
String get displayName => call.room.getLocalizedDisplayname(
|
||||
MatrixLocals(L10n.of(context)!),
|
||||
);
|
||||
|
||||
String get callId => widget.callId;
|
||||
|
||||
|
|
@ -464,7 +467,9 @@ class MyCallingPage extends State<Calling> {
|
|||
if (call.localHold || call.remoteOnHold) {
|
||||
var title = '';
|
||||
if (call.localHold) {
|
||||
title = '${call.displayName} held the call.';
|
||||
title = '${call.room.getLocalizedDisplayname(
|
||||
MatrixLocals(L10n.of(context)!),
|
||||
)} held the call.';
|
||||
} else if (call.remoteOnHold) {
|
||||
title = 'You held the call.';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue