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:
Marcus Hoffmann 2024-02-11 17:04:46 +01:00
commit ccfa3fa8f6
6 changed files with 37 additions and 1 deletions

View file

@ -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