One query to get set of accounts and long-existing logic error.

This commit is contained in:
Matt Corallo
2014-01-11 17:02:08 -10:00
parent eedaa8b3f4
commit 6f9226dcf9
5 changed files with 41 additions and 12 deletions

View File

@@ -257,11 +257,9 @@ public class MessageController extends HttpServlet {
outgoingMessage.setTimestamp(System.currentTimeMillis());
int index = 0;
for (String destination : destinationNumbers) {
if (!destination.equals(incoming.getDestination()))
outgoingMessage.setDestinations(index++, destination);
outgoingMessage.addDestinations(destination);
}
LocalOrRemoteDevice device = null;