diff options
author | Badlop <badlop@process-one.net> | 2021-10-01 12:11:51 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2022-09-13 17:55:03 +0200 |
commit | 4d3875f4ff1c274c26c56344a3d07360065c8521 (patch) | |
tree | 7c1795cd753c6fc6d7dfe4631bd9ebc40cabe197 /src/mod_muc.erl | |
parent | make-binaries: Bump Erlang/OTP version to 24.3.4.5 (diff) |
Store role, and use it when joining a moderated room (#3330)
Diffstat (limited to 'src/mod_muc.erl')
-rw-r--r-- | src/mod_muc.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc.erl b/src/mod_muc.erl index 8ad16a10..c1c1c7f2 100644 --- a/src/mod_muc.erl +++ b/src/mod_muc.erl @@ -1177,7 +1177,7 @@ opts_to_binary(Opts) -> {subject, iolist_to_binary(Subj)}; ({subject_author, Author}) -> {subject_author, iolist_to_binary(Author)}; - ({affiliations, Affs}) -> + ({AffOrRole, Affs}) when (AffOrRole == affiliation) or (AffOrRole == role) -> {affiliations, lists:map( fun({{U, S, R}, Aff}) -> NewAff = |