Remove global "auto_join_rooms" flag and use optional "/join" segments in invite links
Generated for channels, not for "normal" rooms.
This commit is contained in:
parent
ff7851cb53
commit
59f551de75
7 changed files with 14 additions and 34 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import utils from "../plugins/utils";
|
||||
import utils, { ROOM_TYPE_CHANNEL } from "../plugins/utils";
|
||||
import roomTypeMixin from "./roomTypeMixin";
|
||||
|
||||
export default {
|
||||
|
|
@ -96,7 +96,8 @@ export default {
|
|||
this.room.getCanonicalAlias(),
|
||||
this.room.roomId,
|
||||
this.room.name,
|
||||
utils.roomDisplayTypeToQueryParam(this.room, this.roomDisplayType)
|
||||
utils.roomDisplayTypeToQueryParam(this.room, this.roomDisplayType),
|
||||
this.roomDisplayType == ROOM_TYPE_CHANNEL /* Auto join for channels */
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue