fix: Add missing calcDisplayname global rules to client constructor

This two parameters were
already documented but
were missing in the
constructor. They can
also be final.
This commit is contained in:
Krille Fear 2021-12-03 12:34:52 +01:00
parent 27783b4fec
commit 43d5b1c523
1 changed files with 4 additions and 2 deletions

View File

@ -91,9 +91,9 @@ class Client extends MatrixApi {
bool requestHistoryOnLimitedTimeline; bool requestHistoryOnLimitedTimeline;
bool formatLocalpart = true; final bool formatLocalpart;
bool mxidLocalPartFallback = true; final bool mxidLocalPartFallback;
// For CommandsClientExtension // For CommandsClientExtension
final Map<String, FutureOr<String?> Function(CommandArgs)> commands = {}; final Map<String, FutureOr<String?> Function(CommandArgs)> commands = {};
@ -165,6 +165,8 @@ class Client extends MatrixApi {
this.sendMessageTimeoutSeconds = 60, this.sendMessageTimeoutSeconds = 60,
this.requestHistoryOnLimitedTimeline = false, this.requestHistoryOnLimitedTimeline = false,
Set<String>? supportedLoginTypes, Set<String>? supportedLoginTypes,
this.mxidLocalPartFallback = true,
this.formatLocalpart = true,
this.compute, this.compute,
Filter? syncFilter, Filter? syncFilter,
@deprecated bool? debug, @deprecated bool? debug,