A conversation shouldn't need ui-ops for logging the messages. sadrul.conv.persistent

Sat, 25 Aug 2007 04:57:55 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sat, 25 Aug 2007 04:57:55 +0000
branch
sadrul.conv.persistent
changeset 19593
608995889b11
parent 19592
f9a9d682f603
child 19594
339d370c27f0

A conversation shouldn't need ui-ops for logging the messages.

libpurple/conversation.c file | annotate | diff | comparison | revisions
--- a/libpurple/conversation.c	Sat Aug 25 04:53:45 2007 +0000
+++ b/libpurple/conversation.c	Sat Aug 25 04:57:55 2007 +0000
@@ -842,9 +842,6 @@
 
 	ops = purple_conversation_get_ui_ops(conv);
 
-	if (ops == NULL || ops->write_conv == NULL)
-		return;
-
 	account = purple_conversation_get_account(conv);
 	type = purple_conversation_get_type(conv);
 
@@ -928,7 +925,8 @@
 		}
 	}
 
-	ops->write_conv(conv, who, alias, displayed, flags, mtime);
+	if (ops && ops->write_conv)
+		ops->write_conv(conv, who, alias, displayed, flags, mtime);
 	add_message_to_history(conv, who, message, flags, mtime);
 
 	purple_signal_emit(purple_conversations_get_handle(),

mercurial