bool InternalStartChat(User user, bool shouldFocus, string initialMessage, out JabbRChat chat) { if (user.Name == CurrentUser.Name) { chat = null; return(false); } chat = GetChat(user.Name); if (chat == null) { chat = new JabbRChat(this, user, initialMessage); OnOpenChannel(new OpenChannelEventArgs(chat, shouldFocus, true)); return(false); } return(true); }
bool InternalStartChat(User user, bool shouldFocus, string initialMessage, out JabbRChat chat) { if (user.Name == CurrentUser.Name) { chat = null; return false; } chat = GetChat(user.Name); if (chat == null) { chat = new JabbRChat(this, user, initialMessage); OnOpenChannel(new OpenChannelEventArgs(chat, shouldFocus, true)); return false; } return true; }