feat: Add isMultiAccount getter

This commit is contained in:
Christian Pauly 2021-09-18 11:43:34 +02:00
parent 4c3907a699
commit 12217d7cd0

View File

@ -65,6 +65,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
Client get client => widget.clients[_safeActiveClient];
bool get isMultiAccount => widget.clients.length > 1;
set activeClient(int newActiveClient) =>
setState(() => _activeClient = newActiveClient);