fluffychat merge

This commit is contained in:
ggurdin 2025-06-10 09:48:56 -04:00
commit 97c10628e5
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
2 changed files with 5 additions and 1 deletions

View file

@ -67,7 +67,8 @@ enum AppSettings<T> {
displayChatDetailsColumn(
'chat.fluffy.display_chat_details_column',
false,
);
),
enableSoftLogout<bool>('chat.fluffy.enable_soft_logout', false);
final String key;
final T defaultValue;

View file

@ -105,6 +105,7 @@ abstract class ClientManager {
static Client createClient(String clientName, SharedPreferences store) {
final shareKeysWith = AppSettings.shareKeysWith.getItem(store);
final enableSoftLogout = AppSettings.enableSoftLogout.getItem(store);
return Client(
clientName,
@ -144,6 +145,8 @@ abstract class ClientManager {
.singleWhereOrNull((share) => share.name == shareKeysWith) ??
ShareKeysWith.all,
convertLinebreaksInFormatting: false,
onSoftLogout:
enableSoftLogout ? (client) => client.refreshAccessToken() : null,
// #Pangea
syncFilter: Filter(
room: RoomFilter(