Pad: Reuse `getKeyRevisionNumber` when testing if key rev

pull/5512/head
Richard Hansen 2021-12-01 16:49:46 -05:00
parent 79e7697c1c
commit 0d52f985bd
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class Pad {
// ex. getNumForAuthor // ex. getNumForAuthor
if (authorId !== '') this.pool.putAttrib(['author', authorId]); if (authorId !== '') this.pool.putAttrib(['author', authorId]);
if (newRev % 100 === 0) { if (newRev === this.getKeyRevisionNumber(newRev)) {
newRevData.meta.pool = this.pool; newRevData.meta.pool = this.pool;
newRevData.meta.atext = this.atext; newRevData.meta.atext = this.atext;
} }