Ensure group message is being sent to a group.

master
Greyson Parrelli 2019-11-21 13:28:00 -05:00
parent 6cd5100530
commit 274af2f010
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,10 @@ public class PushGroupSendJob extends PushSendJob {
return;
}
if (!message.getRecipient().isPushGroup()) {
throw new MmsException("Message recipient isn't a group!");
}
try {
log(TAG, "Sending message: " + messageId);