- When `onOutgoing(Message, QUeue)` is called lookup the `User*`s for the source and destination from the provided `Message`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-22 21:30:38 +02:00
parent dff66decae
commit cef970944a
1 changed files with 6 additions and 0 deletions

View File

@ -236,6 +236,12 @@ public class Server : MessageDeliveryTransport
// TODO: Implement me
logger.info("Outgoing stub with latest ", latest, "from queue ", from);
// Lookup the user (source)
User* fromUser = this.authManager.getUser(latest.getFrom());
// Lookup the user (destination)
User* toUser = this.authManager.getUser(latest.getDestination());
return true;
}
}