mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-27 20:24:32 +01:00
Remove CellServiceConstraint in favor of NetworkOrCellServiceConstraint.
If a job was enqueued with a CellServiceConstraint (which is currently only SMS jobs), then it'll never run until it gets service, even if you flip the "enable SMS sending over wifi" toggle. This has created bad situations in the past, where SMS jobs just get stuck on devices that never report having cell service (like VM's or wifi only devices). This fixes it by *always* using NetworkOrCellServiceConstraint, and then deciding whether a constraint is met by checking the "wifi SMS" setting at decision-time.
This commit is contained in:
@@ -1416,8 +1416,7 @@ public class ConversationItem extends LinearLayout implements BindableConversati
|
||||
database.markAsOutbox(messageRecord.getId());
|
||||
database.markAsForcedSms(messageRecord.getId());
|
||||
|
||||
ApplicationDependencies.getJobManager().add(new SmsSendJob(context,
|
||||
messageRecord.getId(),
|
||||
ApplicationDependencies.getJobManager().add(new SmsSendJob(messageRecord.getId(),
|
||||
messageRecord.getIndividualRecipient()));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user