Set default message stanza type to 'chat'.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2959 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
1775676471
commit
d827c8d14b
|
@ -1549,7 +1549,7 @@ XmlElement* XMPPUtils::getChatXml(NamedList& list, const char* param,
|
|||
XmlElement* xml = getXml(list,param,extra);
|
||||
if (xml || !build)
|
||||
return xml;
|
||||
xml = createMessage(list.getValue("type"),0,0,list.getValue("id"),0);
|
||||
xml = createMessage(msgType(list.getValue("type")),0,0,list.getValue("id"),0);
|
||||
const char* subject = list.getValue("subject");
|
||||
if (!TelEngine::null(subject))
|
||||
xml->addChild(createSubject(subject));
|
||||
|
|
|
@ -1850,7 +1850,7 @@ public:
|
|||
* @return Message type as enumeration
|
||||
*/
|
||||
static inline MsgType msgType(const char* text)
|
||||
{ return (MsgType)lookup(text,s_msg,TelEngine::null(text) ? Normal : MsgNone); }
|
||||
{ return (MsgType)lookup(text,s_msg,TelEngine::null(text) ? Chat : MsgNone); }
|
||||
|
||||
/**
|
||||
* Get the text from a message type
|
||||
|
|
Loading…
Reference in New Issue