forked from Henry-Hiles/nexus
fix some stuff (maybe?)
This commit is contained in:
parent
a4d60e6c83
commit
3e82faeb86
10 changed files with 58 additions and 36 deletions
|
|
@ -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-", ""),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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...";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue