mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 10:17:56 +00:00
Do not enqueue no-op read receipt jobs.
This commit is contained in:
committed by
mtang-signal
parent
cda029cd93
commit
4c9b5926b9
@@ -98,6 +98,10 @@ public class SendReadReceiptJob extends BaseJob {
|
||||
* maximum size.
|
||||
*/
|
||||
public static void enqueue(long threadId, @NonNull RecipientId recipientId, List<MarkedMessageInfo> markedMessageInfos) {
|
||||
if (!TextSecurePreferences.isReadReceiptsEnabled(AppDependencies.getApplication())) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (recipientId.equals(Recipient.self().getId())) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user