Merge "ChangeInserter: fix comparison of Change.Id to Change.Key" into stable-2.9
This commit is contained in:
@@ -214,8 +214,12 @@ public class ChangeInserter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean messageIsForChange() {
|
private boolean messageIsForChange() {
|
||||||
return changeMessage != null
|
if (changeMessage == null) {
|
||||||
&& changeMessage.getKey().getParentKey().equals(change.getKey());
|
return false;
|
||||||
|
}
|
||||||
|
Change.Id id = change.getId();
|
||||||
|
Change.Id msgId = changeMessage.getKey().getParentKey();
|
||||||
|
return msgId.equals(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void insertMessage(ReviewDb db) throws OrmException {
|
private void insertMessage(ReviewDb db) throws OrmException {
|
||||||
|
Reference in New Issue
Block a user