Knock support
Also, fix token refresh functionality
This commit is contained in:
parent
cfabd8be08
commit
e8f04d79c9
11 changed files with 310 additions and 75 deletions
|
|
@ -62,13 +62,14 @@ export default {
|
|||
},
|
||||
|
||||
publicRoomLink() {
|
||||
if (this.room && this.roomJoinRule == "public") {
|
||||
if (this.room && (this.roomJoinRule == "public" || this.roomJoinRule == "knock")) {
|
||||
return this.$router.getRoomLink(
|
||||
this.room.getCanonicalAlias(),
|
||||
this.room.roomId,
|
||||
this.room.name,
|
||||
utils.roomDisplayTypeToQueryParam(this.room, this.roomDisplayType),
|
||||
this.roomDisplayType == ROOM_TYPE_CHANNEL /* Auto join for channels */
|
||||
this.roomDisplayType == ROOM_TYPE_CHANNEL, /* Auto join for channels */
|
||||
this.roomJoinRule == "knock"
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue