Changeset c573f1b for protocols


Ignore:
Timestamp:
2011-06-15T12:18:16Z (13 years ago)
Author:
Jan Hruban <hrubi13@…>
Branches:
master
Children:
bd11422
Parents:
17dd2ed
Message:

Don't create new channel when skype groupchat turns from DIALOG to MULTI_SUBSCRIBED (works only when user initiates the chat, otherwise new channel is created anyway)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/skype.c

    r17dd2ed rc573f1b  
    912912                imcb_chat_free(gc);
    913913        if (!strcmp(info, "STATUS MULTI_SUBSCRIBED")) {
    914                 gc = imcb_chat_new(ic, id);
    915                 imcb_chat_name_hint(gc, id);
     914                gc = bee_chat_by_title(ic->bee, ic, id);
     915                if (!gc) {
     916                        gc = imcb_chat_new(ic, id);
     917                        imcb_chat_name_hint(gc, id);
     918                }
    916919                skype_printf(ic, "GET CHAT %s ADDER\n", id);
    917920                skype_printf(ic, "GET CHAT %s TOPIC\n", id);
Note: See TracChangeset for help on using the changeset viewer.