chore: make sendTimelineEventTimeout configurable
This commit is contained in:
parent
e8ee58d6d9
commit
c90fdc3e75
2 changed files with 5 additions and 1 deletions
|
|
@ -65,7 +65,8 @@ enum AppSettings<T> {
|
|||
'chat.fluffy.privacy_policy_url',
|
||||
'https://fluffychat.im/en/privacy',
|
||||
),
|
||||
tos<String>('chat.fluffy.tos_url', 'https://fluffychat.im/en/tos');
|
||||
tos<String>('chat.fluffy.tos_url', 'https://fluffychat.im/en/tos'),
|
||||
sendTimelineEventTimeout<int>('chat.fluffy.send_timeline_event_timeout', 15);
|
||||
|
||||
final String key;
|
||||
final T defaultValue;
|
||||
|
|
|
|||
|
|
@ -143,6 +143,9 @@ abstract class ClientManager {
|
|||
onSoftLogout: enableSoftLogout
|
||||
? (client) => client.refreshAccessToken()
|
||||
: null,
|
||||
sendTimelineEventTimeout: Duration(
|
||||
seconds: AppSettings.sendTimelineEventTimeout.value,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue