Skip to content

Commit

Permalink
Return error stanza when storage doesn't support vcard update (4266)
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Aug 20, 2024
1 parent 19ab672 commit 073189f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mod_vcard.erl
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ vcard_iq_set(#iq{from = From, lang = Lang, sub_els = [VCard]} = IQ) ->
%% Should not be here?
Txt = ?T("Nodeprep has failed"),
{stop, xmpp:err_internal_server_error(Txt, Lang)};
{error, not_implemented} ->
Txt = ?T("Updating the vCard is not supported by the vCard storage backend"),
{stop, xmpp:err_feature_not_implemented(Txt, Lang)};
ok ->
IQ
end;
Expand Down

0 comments on commit 073189f

Please sign in to comment.