2003-10-13 Mikael Hallendal <micke@imendio.com>
authorhallski <hallski>
Mon, 13 Oct 2003 16:44:23 +0000
changeset 49 66fd32fc225e
parent 48 d913b0d5c7b6
child 50 b47ab8269b69
2003-10-13 Mikael Hallendal <micke@imendio.com> * loudmouth/lm-message.c: (lm_message_new): Always set an ID on the message.
ChangeLog
loudmouth/lm-message.c
--- a/ChangeLog	Mon Oct 13 10:31:18 2003 +0000
+++ b/ChangeLog	Mon Oct 13 16:44:23 2003 +0000
@@ -1,3 +1,8 @@
+2003-10-13  Mikael Hallendal  <micke@imendio.com>
+
+	* loudmouth/lm-message.c: 
+	(lm_message_new): Always set an ID on the message.
+
 2003-10-13  Mikael Hallendal  <micke@imendio.com>
  
 	* mono/*: Added first cut at C-sharp bindings that I hacked up a while
--- a/loudmouth/lm-message.c	Mon Oct 13 10:31:18 2003 +0000
+++ b/loudmouth/lm-message.c	Mon Oct 13 16:44:23 2003 +0000
@@ -212,6 +212,8 @@
 	PRIV(m)->sub_type  = message_sub_type_when_unset (type);
 	
 	m->node = _lm_message_node_new (_lm_message_type_to_string (type));
+
+	lm_message_node_set_attribute (m->node, "id", _lm_utils_generate_id());
 	
 	if (to) {
 		lm_message_node_set_attribute (m->node, "to", to);