Remove unneeded code

This commit is contained in:
Niels Andriesse 2020-03-05 09:30:55 +11:00
parent 4dd882ea52
commit eb77b7d56b

View File

@ -284,10 +284,8 @@ public class MessageSender {
sendLocalMediaSelf(context, messageId); sendLocalMediaSelf(context, messageId);
} else if (isGroupPushSend(recipient)) { } else if (isGroupPushSend(recipient)) {
sendGroupPush(context, recipient, messageId, null); sendGroupPush(context, recipient, messageId, null);
} else if (!forceSms && isPushMediaSend(context, recipient)) {
sendMediaPush(context, recipient, messageId);
} else { } else {
sendMms(context, messageId); sendMediaPush(context, recipient, messageId);
} }
} }
@ -297,10 +295,8 @@ public class MessageSender {
{ {
if (isLocalSelfSend(context, recipient, forceSms)) { if (isLocalSelfSend(context, recipient, forceSms)) {
sendLocalTextSelf(context, messageId); sendLocalTextSelf(context, messageId);
} else if (!forceSms && isPushTextSend(context, recipient, keyExchange)) {
sendTextPush(context, recipient, messageId);
} else { } else {
sendSms(context, recipient, messageId); sendTextPush(context, recipient, messageId);
} }
} }