diff --git a/lib/components/matrix.dart b/lib/components/matrix.dart index 743c813..334414b 100644 --- a/lib/components/matrix.dart +++ b/lib/components/matrix.dart @@ -344,7 +344,7 @@ class MatrixState extends State { @override void initState() { if (widget.client == null) { - client = Client(widget.clientName, debug: true); + client = Client(widget.clientName, debug: false); if (!kIsWeb) { _initWithStore(); } else { diff --git a/lib/utils/event_extension.dart b/lib/utils/event_extension.dart index 90c4ab8..8e2448a 100644 --- a/lib/utils/event_extension.dart +++ b/lib/utils/event_extension.dart @@ -14,7 +14,7 @@ extension LocalizedBody on Event { getLocalizedBody(BuildContext context, {bool withSenderNamePrefix = false, hideQuotes = false}) { if (this.redacted) { - return "Redacted by ${this.redactedBecause.sender.calcDisplayname()}"; + return "Removed by ${this.redactedBecause.sender.calcDisplayname()}"; } String localizedBody = body; final String senderName = this.sender.calcDisplayname(); @@ -214,8 +214,11 @@ extension LocalizedBody on Event { // Hide quotes if (hideQuotes) { + print("+++ Hide quites +++"); List lines = localizedBody.split("\n"); + print("Lines with quotes: ${lines.length}"); lines.removeWhere((s) => s.startsWith("> ")); + print("Lines without quotes: ${lines.length}"); localizedBody = lines.join("\n"); } diff --git a/lib/views/settings.dart b/lib/views/settings.dart index 701fce4..eb9ee01 100644 --- a/lib/views/settings.dart +++ b/lib/views/settings.dart @@ -91,7 +91,7 @@ class _SettingsState extends State { @override Widget build(BuildContext context) { final Client client = Matrix.of(context).client; - profileFuture ??= client.getProfileFromUserId(client.userID); + profileFuture ??= client.ownProfile; profileFuture.then((p) { if (mounted) setState(() => profile = p); });