Skip to content

Commit

Permalink
presence: update contact in update_subs_db
Browse files Browse the repository at this point in the history
(cherry picked from commit 49272f2)
  • Loading branch information
lazedo committed Nov 29, 2017
1 parent c9685fa commit 85b92f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/presence/subscribe.c
Expand Up @@ -420,6 +420,13 @@ int update_subs_db(subs_t* subs, int type)
update_vals[n_update_cols].nul = 0;
update_vals[n_update_cols].val.int_val = subs->updated_winfo;
n_update_cols++;

update_keys[n_update_cols] = &str_contact_col;
update_vals[n_update_cols].type = DB1_STR;
update_vals[n_update_cols].nul = 0;
update_vals[n_update_cols].val.str_val = subs->contact;
n_update_cols++;

}
if(type & LOCAL_TYPE)
{
Expand Down

0 comments on commit 85b92f5

Please sign in to comment.