-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33245 from RocketChat/release-6.12.1
Release 6.12.1
- Loading branch information
Showing
28 changed files
with
1,148 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@rocket.chat/meteor': patch | ||
--- | ||
|
||
Bump @rocket.chat/meteor version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Allow to use the token from `room.v` when requesting transcript instead of visitor token. Visitors may change their tokens at any time, rendering old conversations impossible to access for them (or for APIs depending on token) as the visitor token won't match the `room.v` token. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@rocket.chat/meteor': patch | ||
--- | ||
|
||
Security Hotfix (https://docs.rocket.chat/docs/security-fixes-and-updates) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
fixed retention policy max age settings not being respected after upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@rocket.chat/message-parser': patch | ||
'@rocket.chat/peggy-loader': patch | ||
--- | ||
|
||
Improved the performance of the message parser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
export const purifyOptions = { | ||
ALLOWED_TAGS: [ | ||
'b', | ||
'i', | ||
'em', | ||
'strong', | ||
'br', | ||
'p', | ||
'ul', | ||
'ol', | ||
'li', | ||
'article', | ||
'aside', | ||
'figure', | ||
'section', | ||
'summary', | ||
'h1', | ||
'h2', | ||
'h3', | ||
'h4', | ||
'h5', | ||
'h6', | ||
'hgroup', | ||
'div', | ||
'hr', | ||
'span', | ||
'wbr', | ||
'abbr', | ||
'acronym', | ||
'cite', | ||
'code', | ||
'dfn', | ||
'figcaption', | ||
'mark', | ||
's', | ||
'samp', | ||
'sub', | ||
'sup', | ||
'var', | ||
'time', | ||
'q', | ||
'del', | ||
'ins', | ||
'rp', | ||
'rt', | ||
'ruby', | ||
'bdi', | ||
'bdo', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -283,6 +283,27 @@ describe('LIVECHAT - Utils', () => { | |
.send({ token: visitor.token, rid: room._id, email: '[email protected]' }); | ||
expect(body).to.have.property('success', true); | ||
}); | ||
it('should allow a visitor to get a transcript even if token changed by using an old token that matches room.v', async () => { | ||
const visitor = await createVisitor(); | ||
const room = await createLivechatRoom(visitor.token); | ||
await closeOmnichannelRoom(room._id); | ||
const visitor2 = await createVisitor(undefined, undefined, visitor.visitorEmails?.[0].address); | ||
const room2 = await createLivechatRoom(visitor2.token); | ||
await closeOmnichannelRoom(room2._id); | ||
|
||
expect(visitor.token !== visitor2.token).to.be.true; | ||
const { body } = await request | ||
.post(api('livechat/transcript')) | ||
.set(credentials) | ||
.send({ token: visitor.token, rid: room._id, email: '[email protected]' }); | ||
expect(body).to.have.property('success', true); | ||
|
||
const { body: body2 } = await request | ||
.post(api('livechat/transcript')) | ||
.set(credentials) | ||
.send({ token: visitor2.token, rid: room2._id, email: '[email protected]' }); | ||
expect(body2).to.have.property('success', true); | ||
}); | ||
}); | ||
|
||
describe('livechat/transcript/:rid', () => { | ||
|
Oops, something went wrong.