Parcourir la source

presence: update record_route in database

lazedo il y a 7 ans
Parent
commit
e525479564
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      src/modules/presence/subscribe.c

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

@@ -427,6 +427,12 @@ int update_subs_db(subs_t* subs, int type)
 		update_vals[n_update_cols].val.str_val = subs->contact;
 		update_vals[n_update_cols].val.str_val = subs->contact;
 		n_update_cols++;
 		n_update_cols++;
 
 
+		update_keys[n_update_cols] = &str_record_route_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->record_route;
+		n_update_cols++;
+
 	}
 	}
 	if(type & LOCAL_TYPE)
 	if(type & LOCAL_TYPE)
 	{
 	{