Fix logic behind setting reply-recipient when receiving a message.

This commit is contained in:
Ali Moghnieh 2015-10-31 23:28:05 +00:00
parent 7b60552ec1
commit 928f05ca8f

View File

@ -105,7 +105,7 @@ public class SimpleMessageRecipient implements IMessageRecipient {
if (ess.getSettings().isLastMessageReplyRecipient()) {
// If this recipient doesn't have a reply recipient, initiate by setting the first
// message sender to this recipient's replyRecipient.
if (!isReachable()) {
if (getReplyRecipient() == null || !getReplyRecipient().isReachable()) {
setReplyRecipient(sender);
}
} else { // Old message functionality, always set the reply recipient to the last person who sent us a message.