Skip to content

Commit

Permalink
Allow arbitrary elements inside vCard
Browse files Browse the repository at this point in the history
  • Loading branch information
prefiks committed May 12, 2021
1 parent 88c43c3 commit 1a4874e
Show file tree
Hide file tree
Showing 4 changed files with 481 additions and 190 deletions.
3 changes: 2 additions & 1 deletion include/xmpp_codec.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,8 @@
url :: 'undefined' | binary(),
class :: 'confidential' | 'private' | 'public' | 'undefined',
key :: 'undefined' | #vcard_key{},
desc :: 'undefined' | binary()}).
desc :: 'undefined' | binary(),
sub_els = [] :: [xmpp_element() | fxml:xmlel()]}).
-type vcard_temp() :: #vcard_temp{}.

-record(time, {tzo :: 'undefined' | {integer(),integer()},
Expand Down
2 changes: 1 addition & 1 deletion specs/xmpp_codec.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@
'$mailer', '$tz', '$geo', '$title', '$role', '$logo',
'$org', '$categories', '$note', '$prodid', %% '$agent',
'$rev', '$sort_string', '$sound', '$uid', '$url', '$class',
'$key', '$desc'},
'$key', '$desc', '$_els'},
refs = [#ref{name = vcard_N, min = 0, max = 1, label = '$n'},
#ref{name = vcard_ADR, label = '$adr'},
#ref{name = vcard_LABEL, label = '$label'},
Expand Down
Loading

0 comments on commit 1a4874e

Please sign in to comment.