Index: 002_offline_event.patch
===================================================================
--- 002_offline_event.patch	(revision 513088)
+++ 002_offline_event.patch	(working copy)
@@ -1,17 +0,0 @@
-? 002_offline_event.patch
-Index: iris/xmpp-im/types.cpp
-===================================================================
-RCS file: /home/kde/kdenetwork/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp,v
-retrieving revision 1.3
-diff -u -p -r1.3 types.cpp
---- iris/xmpp-im/types.cpp	21 May 2004 14:35:44 -0000	1.3
-+++ iris/xmpp-im/types.cpp	5 Feb 2005 21:04:44 -0000
-@@ -639,6 +639,8 @@ bool Message::fromStanza(const Stanza &s
- 				d->eventList += ComposingEvent;
- 			else if (evtag == "delivered")
- 				d->eventList += DeliveredEvent;
-+			else if (evtag == "offline")
-+				d->eventList += OfflineEvent;
- 		}
- 		if (d->eventList.isEmpty())
- 			d->eventList += CancelEvent;
Index: iris/xmpp-im/types.cpp
===================================================================
--- iris/xmpp-im/types.cpp	(revision 513088)
+++ iris/xmpp-im/types.cpp	(working copy)
@@ -641,6 +641,8 @@
 				d->eventList += ComposingEvent;
 			else if (evtag == "delivered")
 				d->eventList += DeliveredEvent;
+			else if (evtag == "offline")
+				d->eventList += OfflineEvent;
 		}
 		if (d->eventList.isEmpty())
 			d->eventList += CancelEvent;

This patch adds an offline event to the event list for a message
when converting it from a stanza to a message

Index: iris/xmpp-im/types.cpp
===================================================================
--- iris/xmpp-im/types.cpp	(revision 513088)
+++ iris/xmpp-im/types.cpp	(working copy)
@@ -1722,6 +1722,8 @@
 				d->eventList += ComposingEvent;
 			else if (evtag == "delivered")
 				d->eventList += DeliveredEvent;
+			else if (evtag == "offline")
+				d->eventList += OfflineEvent;
 		}
 		if (d->eventList.isEmpty())
 			d->eventList += CancelEvent;

Update the patch so it doesn't contain a diff of itself and so it has the right line numbers in order to avoid using an offset when applying it.
Update the patch so it doesn't contain a diff of itself and so it
has the right line numbers in order to avoid using an offset when
applying it.


svn path=/trunk/KDE/kdenetwork/kopete/; revision=769813
