]> granicus.if.org Git - ejabberd/commitdiff
Usable size for Shared rosters members textarea (EJAB-1753)
authorBadlop <badlop@process-one.net>
Fri, 13 Jan 2017 11:16:23 +0000 (12:16 +0100)
committerBadlop <badlop@process-one.net>
Fri, 13 Jan 2017 11:16:23 +0000 (12:16 +0100)
src/mod_shared_roster.erl

index f1b7ed5cd9ad8b5cd0ca0dc0a94f185e8879ca13..8400823f4366a227a8f816a1f1d3e06214decb64 100644 (file)
@@ -915,7 +915,7 @@ shared_roster_group(Host, Group, Query, Lang) ->
                              ?XE(<<"td">>,
                                  [?TEXTAREA(<<"members">>,
                                             integer_to_binary(lists:max([3,
-                                                                               byte_size(FMembers)])),
+                                                                               length(Members)+3])),
                                             <<"20">>, FMembers)])]),
                         ?XE(<<"tr">>,
                             [?XCT(<<"td">>, <<"Displayed Groups:">>),