bool FXmppMessagesJingle::SendMessage(FString RecipientId, const FXmppMessage& Message)
{
	bool bStarted = false;
	if (Connection.GetLoginStatus() == EXmppLoginStatus::LoggedIn)
	{
		FString RecipientNode;
		FString RecipientDomain;
		RecipientId.Split(TEXT("@"), &RecipientNode, &RecipientDomain);

		FXmppMessage FullMessage(Message);
		FullMessage.FromJid = FXmppUserJid(RecipientNode, RecipientDomain);

		FXmppMessageJingle* NewMessage = new FXmppMessageJingle();
		ConvertFromMessage(*NewMessage, FullMessage);
		bStarted = SendMessageQueue.Enqueue(NewMessage);
		NumMessagesSent++;
	}
	return bStarted;
}
bool FXmppChatJingle::SendChat(FString RecipientId, const FXmppChatMessage& ChatMessage)
{
	FXmppChatMessageJingle* NewChat = new FXmppChatMessageJingle();
	ConvertFromMessage(*NewChat, ChatMessage);
	return SendChatQueue.Enqueue(NewChat);
}