mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 02:48:10 +00:00
Prevent crash in megaphones after backup restore.
This commit is contained in:
@@ -63,6 +63,7 @@ public class MegaphoneRepository {
|
||||
public void getNextMegaphone(@NonNull Callback<Megaphone> callback) {
|
||||
executor.execute(() -> {
|
||||
if (enabled) {
|
||||
init();
|
||||
callback.onResult(Megaphones.getNextMegaphone(context, databaseCache));
|
||||
} else {
|
||||
callback.onResult(null);
|
||||
|
Reference in New Issue
Block a user