24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-09-27 14:30:55 +02:00

Don't stop roster table conversion on broken askmessage

This commit is contained in:
Evgeniy Khramtsov 2014-06-09 10:54:51 +04:00
parent 62be3bc111
commit 87f8c2ecd8

View File

@ -1319,7 +1319,8 @@ update_roster_table() ->
iolist_to_binary(R2)}, iolist_to_binary(R2)},
name = iolist_to_binary(Name), name = iolist_to_binary(Name),
groups = [iolist_to_binary(G) || G <- Gs], groups = [iolist_to_binary(G) || G <- Gs],
askmessage = iolist_to_binary(Ask), askmessage = try iolist_to_binary(Ask)
catch _:_ -> <<"">> end,
xs = [xml:to_xmlel(X) || X <- Xs]} xs = [xml:to_xmlel(X) || X <- Xs]}
end); end);
_ -> _ ->