Fix shortcut update job crash for old installs without an aci.

This commit is contained in:
Cody Henthorne
2025-05-05 11:10:13 -04:00
committed by Michelle Tang
parent 6d04c8ba42
commit 961e9fd4b9

View File

@@ -64,6 +64,11 @@ public class ConversationShortcutUpdateJob extends BaseJob {
return;
}
if (SignalStore.account().getAci() == null) {
Log.i(TAG, "Need ACI for group shortcuts");
return;
}
ThreadTable threadTable = SignalDatabase.threads();
int maxShortcuts = ConversationUtil.getMaxShortcuts(context);
List<Recipient> ranked = new ArrayList<>(maxShortcuts);