return items;
}
+
+char *chime_purple_get_cb_alias(PurpleConnection *conn, int id, const gchar *who)
+{
+ ChimeContact *contact = chime_connection_contact_by_email(PURPLE_CHIME_CXN(conn), who);
+
+ if (contact)
+ return g_strdup(chime_contact_get_display_name(contact));
+ else
+ return NULL;
+}
}
}
+#ifdef PURPLE_BLIST_NODE_IS_VISIBLE /* This was added at the same time */
+#define PRPL_HAS_GET_CB_ALIAS
+#endif
+
static PurplePluginProtocolInfo chime_prpl_info = {
+ .struct_size = sizeof(PurplePluginProtocolInfo),
.options = OPT_PROTO_NO_PASSWORD,
.list_icon = chime_purple_list_icon,
.login = chime_purple_login,
.send_typing = chime_send_typing,
.set_idle = chime_purple_set_idle,
.blist_node_menu = chime_purple_blist_node_menu,
+#ifdef PRPL_HAS_GET_CB_ALIAS
+ .get_cb_alias = chime_purple_get_cb_alias,
+#endif
};
static void chime_purple_show_about_plugin(PurplePluginAction *action)
void chime_purple_chat_invite(PurpleConnection *conn, int id, const char *message, const char *who);
struct chime_chat *do_join_chat(PurpleConnection *conn, ChimeConnection *cxn, ChimeObject *obj, JsonNode *first_msg, ChimeMeeting *meeting);
GList *chime_purple_chat_menu(PurpleChat *chat);
+char *chime_purple_get_cb_alias(PurpleConnection *conn, int id, const gchar *who);
/* conversations.c */
void on_chime_new_conversation(ChimeConnection *cxn, ChimeConversation *conv, PurpleConnection *conn);