Skip to content

Commit

Permalink
Merge pull request #28 from bigbluebutton/develop
Browse files Browse the repository at this point in the history
chore: update from develop (1.5.0)
  • Loading branch information
antobinary authored Jul 24, 2023
2 parents 570921c + d4a5644 commit 9982d21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions lib/redis/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,11 @@ const handlePadUpdated = (header, body) => {
pad,
} = body;

const {
atext,
id: padId,
} = pad;
// Fallback to padId if needed
const padId = pad.id || pad.padId;

// Clear Etherpad's "\n" insertion
const text = atext.text.endsWith('\n') ? atext.text.slice(0, -1) : atext.text;
const text = pad.atext.text.endsWith('\n') ? pad.atext.text.slice(0, -1) : pad.atext.text;

database.updatePad(padId, { authorId, rev, changeset, text }).then(() => {
logger.debug(ids.PAD, 'updated', { padId, authorId, rev, changeset, text });
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbb-pads",
"version": "1.4.1",
"version": "1.5.0",
"description": "BigBlueButton's pads manager",
"engines": {
"node": ">=16"
Expand Down

0 comments on commit 9982d21

Please sign in to comment.