Improve speed of sending single messages.

This commit is contained in:
Cody Henthorne
2021-07-29 14:07:39 -04:00
committed by GitHub
parent 25234496bf
commit 9398716848
12 changed files with 141 additions and 111 deletions

View File

@@ -308,8 +308,9 @@ public class RecipientUtil {
}
@WorkerThread
private static boolean isMessageRequestAccepted(@NonNull Context context, @Nullable Long threadId, @NonNull Recipient threadRecipient) {
return threadRecipient.isSelf() ||
public static boolean isMessageRequestAccepted(@NonNull Context context, @Nullable Long threadId, @Nullable Recipient threadRecipient) {
return threadRecipient == null ||
threadRecipient.isSelf() ||
threadRecipient.isProfileSharing() ||
threadRecipient.isSystemContact() ||
threadRecipient.isForceSmsSelection() ||