/** * Get the MetaContact corresponding to the chat. The chat must correspond to a one on one * conversation. If it is a group chat an exception will be thrown. * * @param chat The chat to get the MetaContact from * @return The MetaContact corresponding to the chat. */ public MetaContact getChatContact(Chat chat) { ChatSession chatSession = (ChatSession) chat; return chatSession.getMetaContact(); }