fix display name metadata

This commit is contained in:
Henry Hiles 2026-02-13 17:55:39 -05:00
commit 45b06fd9c1
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

3
devtools_options.yaml Normal file
View file

@ -0,0 +1,3 @@
description: This file stores settings for Dart & Flutter DevTools.
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
extensions:

View file

@ -70,7 +70,7 @@ class MessageController extends AsyncNotifier<Message?> {
"body": newContent?["body"] ?? content["body"], "body": newContent?["body"] ?? content["body"],
"eventType": type, "eventType": type,
"avatarUrl": author?.content["avatar_url"], "avatarUrl": author?.content["avatar_url"],
"displayName": author?.content["displayname"] ?? event.stateKey, "displayName": author?.content["displayname"] ?? event.authorId,
"txnId": config.event.transactionId, "txnId": config.event.transactionId,
}; };