--- psi_cvs-2005-01-21--clean/iris/xmpp-im/types.cpp	Thu Oct 14 20:14:40 2004
+++ psi/iris/xmpp-im/types.cpp	Sun Jan 23 15:40:36 2005
@@ -490,6 +490,12 @@
 		}
 	}
 
+	// thread
+	if(!d->thread.isEmpty()) {
+		QDomElement e = s.createTextElement(s.baseNS(), "thread", d->thread);
+		s.appendChild(e);
+	}
+
 	if(d->type == "error")
 		s.setError(d->error);
 
