mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-21 13:18:52 +01:00
Make sure we have contacts permission before trying to sync
This commit is contained in:
@@ -113,10 +113,12 @@ class MainViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sync contacts when we detect a change
|
// Sync contacts when we detect a change
|
||||||
disposables += contactAddedListener.listen()
|
if (permissionManager.hasContacts()) {
|
||||||
.debounce(1, TimeUnit.SECONDS)
|
disposables += contactAddedListener.listen()
|
||||||
.subscribeOn(Schedulers.io())
|
.debounce(1, TimeUnit.SECONDS)
|
||||||
.subscribe { syncContacts.execute(Unit) }
|
.subscribeOn(Schedulers.io())
|
||||||
|
.subscribe { syncContacts.execute(Unit) }
|
||||||
|
}
|
||||||
|
|
||||||
ratingManager.addSession()
|
ratingManager.addSession()
|
||||||
markAllSeen.execute(Unit)
|
markAllSeen.execute(Unit)
|
||||||
|
|||||||
Reference in New Issue
Block a user