2
0
Эх сурвалжийг харах

presence: update contact in update_subs_db

lazedo 7 жил өмнө
parent
commit
49272f23b2

+ 7 - 0
src/modules/presence/subscribe.c

@@ -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].nul = 0;
 		update_vals[n_update_cols].val.int_val = subs->updated_winfo;
 		update_vals[n_update_cols].val.int_val = subs->updated_winfo;
 		n_update_cols++;
 		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)
 	if(type & LOCAL_TYPE)
 	{
 	{