Skip to content

Commit

Permalink
removed not needed channel creation code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawp committed Sep 18, 2018
1 parent fe762f9 commit 0e126dd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions libmattermost.c
Original file line number Diff line number Diff line change
Expand Up @@ -4556,7 +4556,6 @@ mm_join_chat(PurpleConnection *pc, GHashTable *chatdata)
const gchar *alias = g_hash_table_lookup(ma->aliases,id);

chatconv = purple_serv_got_joined_chat(pc, id_hash, alias);//ALIAS ?
// purple_serv_got_chat_in(ma->pc, g_str_hash(id), "none", PURPLE_MESSAGE_SYSTEM, "no message", 0);

purple_conversation_set_data(PURPLE_CONVERSATION(chatconv), "id", g_strdup(id));
purple_conversation_set_data(PURPLE_CONVERSATION(chatconv), "team_id", g_strdup(team_id));
Expand All @@ -4565,14 +4564,7 @@ mm_join_chat(PurpleConnection *pc, GHashTable *chatdata)
purple_conversation_set_data(PURPLE_CONVERSATION(chatconv), "creator_id", g_strdup(creator_id));
purple_conversation_present(PURPLE_CONVERSATION(chatconv));

MattermostChannel *channel = g_new0(MattermostChannel,1);
channel->name = g_strdup(name);
channel->id = g_strdup(id);
channel->team_id = g_strdup(team_id);
channel->type = g_strdup(type);

mm_get_channel_by_id(ma,team_id,id);
// mm_join_room(ma, channel);
}

static void
Expand Down

0 comments on commit 0e126dd

Please sign in to comment.