fix some stuff (maybe?)

This commit is contained in:
Henry Hiles 2025-12-04 12:23:08 -05:00
commit 3e82faeb86
No known key found for this signature in database
10 changed files with 58 additions and 36 deletions

View file

@ -19,8 +19,6 @@ class Html extends ConsumerWidget {
return SpoilerText(text: element.text);
}
return switch (element.localName) {
"mx-reply" => SizedBox.shrink(),
"code" => CodeBlock(
element.text,
lang: element.className.replaceAll("language-", ""),

View file

@ -172,9 +172,7 @@ class RoomChat extends HookConsumerWidget {
ChatAnimatedList(
itemBuilder: itemBuilder,
onEndReached: notifier.loadOlder,
onStartReached: () async {
notifier.markRead();
},
onStartReached: notifier.markRead,
),
composerBuilder: (_) => ChatBox(
replyToMessage: replyToMessage.value,

View file

@ -97,7 +97,6 @@ class Sidebar extends HookConsumerWidget {
),
IconButton(
onPressed: () => Navigator.of(context).push(
// TODO: explore public rooms/spaces
MaterialPageRoute(builder: (_) => SettingsPage()),
),
icon: Icon(Icons.settings),

View file

@ -48,7 +48,9 @@ class TopWidget extends ConsumerWidget {
),
)
: null;
final replyText = (smallerText == null)
final replyText =
(smallerText == null ||
smallerText.length == replyMessage.text.length)
? replyMessage.text
: "$smallerText...";