Pad: Reuse getKeyRevisionNumber when testing if key rev

This commit is contained in:
Richard Hansen 2021-12-01 16:49:46 -05:00
parent 79e7697c1c
commit 0d52f985bd

View file

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