Fix login issue
This commit is contained in:
parent
1583d50805
commit
125c78d9d2
3 changed files with 5 additions and 3 deletions
|
|
@ -15,7 +15,9 @@ class ClientController extends AsyncNotifier<Client> {
|
||||||
bool updateShouldNotify(
|
bool updateShouldNotify(
|
||||||
AsyncValue<Client> previous,
|
AsyncValue<Client> previous,
|
||||||
AsyncValue<Client> next,
|
AsyncValue<Client> next,
|
||||||
) => previous.hasValue != next.hasValue;
|
) =>
|
||||||
|
previous.hasValue != next.hasValue ||
|
||||||
|
previous.value?.accessToken != next.value?.accessToken;
|
||||||
static const sessionBackupKey = "sessionBackup";
|
static const sessionBackupKey = "sessionBackup";
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ class MentionOverlay extends ConsumerWidget {
|
||||||
title: Text(room.title),
|
title: Text(room.title),
|
||||||
subtitle: room.roomData.topic.isEmpty
|
subtitle: room.roomData.topic.isEmpty
|
||||||
? null
|
? null
|
||||||
: Text(room.roomData.topic),
|
: Text(room.roomData.topic, maxLines: 1),
|
||||||
onTap: () => addTag(
|
onTap: () => addTag(
|
||||||
id: "[#${room.roomData.getLocalizedDisplayname()}](https://matrix.to/#/${room.roomData.id})",
|
id: "[#${room.roomData.getLocalizedDisplayname()}](https://matrix.to/#/${room.roomData.id})",
|
||||||
name:
|
name:
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class RoomAppbar extends StatelessWidget implements PreferredSizeWidget {
|
||||||
title: Column(
|
title: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(room.title, overflow: TextOverflow.ellipsis),
|
Text(room.title, overflow: TextOverflow.ellipsis, maxLines: 1),
|
||||||
if (room.roomData.topic.isNotEmpty)
|
if (room.roomData.topic.isNotEmpty)
|
||||||
Text(
|
Text(
|
||||||
room.roomData.topic,
|
room.roomData.topic,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue