mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Merge pull request #1166 from profanity-im/fix/1165-subscribed-msg
Don't print subscribed message if contact is already in roster
This commit is contained in:
commit
5d711639b0
@ -863,9 +863,13 @@ sv_ev_subscription(const char *barejid, jabber_subscr_t type)
|
||||
}
|
||||
break;
|
||||
case PRESENCE_SUBSCRIBED:
|
||||
cons_show("Subscription received from %s", barejid);
|
||||
log_info("Subscription received from %s", barejid);
|
||||
cons_show("Subscription received from %s", barejid);
|
||||
|
||||
PContact contact = roster_get_contact(barejid);
|
||||
if (contact == NULL) {
|
||||
ui_print_system_msg_from_recipient(barejid, "Subscribed");
|
||||
}
|
||||
break;
|
||||
case PRESENCE_UNSUBSCRIBED:
|
||||
cons_show("%s deleted subscription", barejid);
|
||||
|
Loading…
Reference in New Issue
Block a user