Hey all- one quick (or maybe not so quick) question:
Creating Chats- I’‘m building an app that uses Smack to in part as the foundation of a traditional chat engine. What’‘s the best way to kick off chat sessions? I’‘m thinking of two, and was hoping y’'all might point out the pros and cons of each:
Listen to a connection via PacketListener. When Message packets arrive, look up the send to see if there is a Chat already in progress. If not, create the Chat, else do nothing. (Problem: how do I pass the original message to the chat so that it shows up as the first line.)
Pre-create a Chat for every presentity on the roster, but leave them headless until the first message arrives, at which point show a chat window.