feat: make showing user presence info optional
895de76e70 replaced the stories feature
with presence status messages. Stories were an optional feature but
right now presence information can only be disabled on a homeserver
level.
Introduce a setting to make this feature optional on a client level.
This commit is contained in:
parent
aa68e8fe3b
commit
ccfa3fa8f6
6 changed files with 37 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ class Matrix extends StatefulWidget {
|
|||
class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
||||
int _activeClient = -1;
|
||||
String? activeBundle;
|
||||
|
||||
SharedPreferences get store => widget.store;
|
||||
|
||||
HomeserverSummary? loginHomeserverSummary;
|
||||
|
|
@ -443,6 +444,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
|
||||
AppConfig.experimentalVoip = store.getBool(SettingKeys.experimentalVoip) ??
|
||||
AppConfig.experimentalVoip;
|
||||
|
||||
AppConfig.showPresences =
|
||||
store.getBool(SettingKeys.showPresences) ?? AppConfig.showPresences;
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue