~singpolyma/cheogram-android

4cc7069eca23273c4a79fce5c67a6a66d1c170dc — Stephen Paul Weber 3 months ago 99a92ca
Tell the server we have a UI that can handle up to 1000 items
1 files changed, 6 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Conversation.java
M src/main/java/eu/siacs/conversations/entities/Conversation.java => src/main/java/eu/siacs/conversations/entities/Conversation.java +6 -0
@@ 2269,6 2269,12 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
                    formType != null && formType.equals("form")) {

                    responseElement.setAttribute("type", "submit");
                    Element rsm = responseElement.findChild("set", "http://jabber.org/protocol/rsm");
                    if (rsm != null) {
                        Element max = new Element("max", "http://jabber.org/protocol/rsm");
                        max.setContent("1000");
                        rsm.addChild(max);
                    }
                    c.addChild(responseElement);
                }