[fix] Don't show "pad deleted" message when copying pad (#3320)

Fix #3183
pull/3286/merge
Luiza Pagliari 2018-02-16 14:18:51 -02:00 committed by GitHub
parent 0c806b7fc0
commit 187e51948d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -464,9 +464,10 @@ Pad.prototype.copy = function copy(destinationID, force, callback) {
} }
else force = true; else force = true;
//kick everyone from this pad // Kick everyone from this pad.
// TODO: this presents a message on the client saying that the pad was 'deleted'. Fix this? // This was commented due to https://github.com/ether/etherpad-lite/issues/3183.
padMessageHandler.kickSessionsFromPad(sourceID); // Do we really need to kick everyone out?
// padMessageHandler.kickSessionsFromPad(sourceID);
// flush the source pad: // flush the source pad:
_this.saveToDatabase(); _this.saveToDatabase();