Skip to content

Commit

Permalink
Expose sharing_tag while listing subscriptions
Browse files Browse the repository at this point in the history
Helper for #1848
  • Loading branch information
bogdan-iancu committed Nov 8, 2019
1 parent 436dd69 commit d91454a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/presence/presence.c
Expand Up @@ -768,6 +768,10 @@ static inline int mi_print_shtable_record(mi_item_t *p_item, subs_t* s)
if (add_mi_number(item, MI_SSTR("version"), s->version) < 0)
goto error;

if (s->sh_tag.len && add_mi_string(item, MI_SSTR("sharing_tag"),
s->sh_tag.s, s->sh_tag.len) < 0)
goto error;

if (add_mi_string(item, MI_SSTR("to_user"),
s->to_user.s, s->to_user.len) < 0)
goto error;
Expand Down

0 comments on commit d91454a

Please sign in to comment.