Format project

This commit is contained in:
Benoit Marty 2022-12-09 10:25:11 +01:00
parent e9a3dec6e9
commit a413b635d1
142 changed files with 840 additions and 518 deletions

View file

@ -13,14 +13,14 @@ class MainViewModel : ViewModel() {
return matrix.isLoggedIn().first()
}
fun startSyncIfLogged(){
fun startSyncIfLogged() {
viewModelScope.launch {
if(!isLoggedIn()) return@launch
if (!isLoggedIn()) return@launch
matrix.activeClient().startSync()
}
}
fun stopSyncIfLogged(){
fun stopSyncIfLogged() {
viewModelScope.launch {
if (!isLoggedIn()) return@launch
matrix.activeClient().stopSync()
@ -31,4 +31,4 @@ class MainViewModel : ViewModel() {
matrix.restoreSession()
matrix.activeClient().startSync()
}
}
}