Skip to content

Commit

Permalink
#8: Properly add maxFileSize in disco-info responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
guusdk committed Feb 19, 2018
1 parent 50d3756 commit d6b73e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/nl/goodbytes/xmpp/xep0363/Component.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected IQ handleDiscoInfo( IQ iq )
final Element configForm = response.getChildElement().addElement( "x", "jabber:x:data" );
configForm.addAttribute( "type", "result" );
configForm.addElement( "field" ).addAttribute( "var", "FORM_TYPE" ).addAttribute( "type", "hidden" ).addElement( "value" ).addText( NAMESPACE );
configForm.addElement( "field" ).addAttribute( "var", "max-file-size" ).addText( Long.toString( SlotManager.getInstance().getMaxFileSize() ) );
configForm.addElement( "field" ).addAttribute( "var", "max-file-size" ).addElement( "value" ).addText( Long.toString( SlotManager.getInstance().getMaxFileSize() ) );
}

return response;
Expand Down

0 comments on commit d6b73e5

Please sign in to comment.