Fix login issue

This commit is contained in:
Henry Hiles 2026-01-08 20:55:21 -05:00
commit 125c78d9d2
No known key found for this signature in database
3 changed files with 5 additions and 3 deletions

View file

@ -15,7 +15,9 @@ class ClientController extends AsyncNotifier<Client> {
bool updateShouldNotify(
AsyncValue<Client> previous,
AsyncValue<Client> next,
) => previous.hasValue != next.hasValue;
) =>
previous.hasValue != next.hasValue ||
previous.value?.accessToken != next.value?.accessToken;
static const sessionBackupKey = "sessionBackup";
@override

View file

@ -108,7 +108,7 @@ class MentionOverlay extends ConsumerWidget {
title: Text(room.title),
subtitle: room.roomData.topic.isEmpty
? null
: Text(room.roomData.topic),
: Text(room.roomData.topic, maxLines: 1),
onTap: () => addTag(
id: "[#${room.roomData.getLocalizedDisplayname()}](https://matrix.to/#/${room.roomData.id})",
name:

View file

@ -36,7 +36,7 @@ class RoomAppbar extends StatelessWidget implements PreferredSizeWidget {
title: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(room.title, overflow: TextOverflow.ellipsis),
Text(room.title, overflow: TextOverflow.ellipsis, maxLines: 1),
if (room.roomData.topic.isNotEmpty)
Text(
room.roomData.topic,