Merge branch 'master' of github.com:processone/ejabberd

This commit is contained in:
Pablo Polvorin 2016-07-19 20:19:17 -03:00
commit b5a90be3cb
1 changed files with 2 additions and 0 deletions

View File

@ -1032,6 +1032,8 @@ filter_by_max(_Msgs, _Junk) ->
limit_max(RSM, ?NS_MAM_TMP) ->
RSM; % XEP-0313 v0.2 doesn't require clients to support RSM.
limit_max(none, _NS) ->
#rsm_in{max = ?DEF_PAGE_SIZE};
limit_max(#rsm_in{max = Max} = RSM, _NS) when not is_integer(Max) ->
RSM#rsm_in{max = ?DEF_PAGE_SIZE};
limit_max(#rsm_in{max = Max} = RSM, _NS) when Max > ?MAX_PAGE_SIZE ->