summaryrefslogtreecommitdiff
path: root/finch
diff options
context:
space:
mode:
authorTomasz Wasilczyk <twasilczyk@pidgin.im>2014-05-23 09:20:34 +0200
committerTomasz Wasilczyk <twasilczyk@pidgin.im>2014-05-23 09:20:34 +0200
commit8ec8c345e27fa18d995e7293cf2a18552b0c14da (patch)
treec00d5040165f442bca6269bfea628aa2cd98f0a5 /finch
parente13ed4bf0f9747118e5c399897ec2cb6d75c247c (diff)
downloadpidgin-8ec8c345e27fa18d995e7293cf2a18552b0c14da.tar.gz
Split PurpleMessage into incoming, outgoing and system
Diffstat (limited to 'finch')
-rw-r--r--finch/gntconv.c4
-rw-r--r--finch/gntpounce.c2
-rw-r--r--finch/gntsound.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/finch/gntconv.c b/finch/gntconv.c
index e462036ccc..bf7c266c7e 100644
--- a/finch/gntconv.c
+++ b/finch/gntconv.c
@@ -1093,7 +1093,7 @@ static void
finch_write_chat(PurpleChatConversation *chat, PurpleMessage *msg)
{
purple_conversation_write(PURPLE_CONVERSATION(chat),
- purple_message_get_who(msg),
+ purple_message_get_author(msg),
purple_message_get_contents(msg),
purple_message_get_flags(msg),
purple_message_get_time(msg));
@@ -1105,7 +1105,7 @@ finch_write_im(PurpleIMConversation *im, PurpleMessage *msg)
PurpleConversation *conv = PURPLE_CONVERSATION(im);
PurpleAccount *account = purple_conversation_get_account(conv);
PurpleMessageFlags flags = purple_message_get_flags(msg);
- const gchar *who = purple_message_get_who(msg);
+ const gchar *who = purple_message_get_author(msg);
if (flags & PURPLE_MESSAGE_SEND)
{
diff --git a/finch/gntpounce.c b/finch/gntpounce.c
index b6cc9f2ecf..6973359571 100644
--- a/finch/gntpounce.c
+++ b/finch/gntpounce.c
@@ -875,7 +875,7 @@ pounce_cb(PurplePounce *pounce, PurplePounceEvent events, void *data)
if (im == NULL)
im = purple_im_conversation_new(account, pouncee);
- pmsg = purple_message_new(pouncee, message, PURPLE_MESSAGE_SEND);
+ pmsg = purple_message_new_outgoing(pouncee, message, 0);
purple_serv_send_im(purple_account_get_connection(account), pmsg);
purple_conversation_write_message(PURPLE_CONVERSATION(im), pmsg);
}
diff --git a/finch/gntsound.c b/finch/gntsound.c
index d7e1da00b4..999c86c5fa 100644
--- a/finch/gntsound.c
+++ b/finch/gntsound.c
@@ -208,7 +208,7 @@ im_msg_sent_cb(PurpleAccount *account, PurpleMessage *msg,
PurpleSoundEventID event)
{
PurpleIMConversation *im = purple_conversations_find_im_with_account(
- purple_message_get_who(msg), account);
+ purple_message_get_recipient(msg), account);
play_conv_event(PURPLE_CONVERSATION(im), event);
}