/soc/2015/jgeboski/facebook: 02346252cb7e: facebook: fixed times...

James Geboski <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 02346252cb7ea9bc8dcc7c5131a965aaafcc7e3b
Author:	 James Geboski <[email protected]>
Date:	 2015-08-11 23:53 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/02346252cb7e

Description:

facebook: fixed timestamps not being set for self messages

diffstat:

 libpurple/protocols/facebook/util.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git a/libpurple/protocols/facebook/util.c b/libpurple/protocols/facebook/util.c
--- a/libpurple/protocols/facebook/util.c
+++ b/libpurple/protocols/facebook/util.c
@@ -434,6 +434,7 @@ fb_util_serv_got_im(PurpleConnection *gc
 
 	name = purple_account_get_username(acct);
 	msg = purple_message_new_outgoing(name, text, flags);
+	purple_message_set_time(msg, timestamp);
 	purple_conversation_write_message(PURPLE_CONVERSATION(conv), msg);
 }
 
@@ -457,6 +458,7 @@ fb_util_serv_got_chat_in(PurpleConnectio
 
 	name = purple_account_get_username(acct);
 	msg = purple_message_new_outgoing(name, text, flags);
+	purple_message_set_time(msg, timestamp);
 	purple_conversation_write_message(PURPLE_CONVERSATION(conv), msg);
 }
 

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.