Check DialogFilterId againts its min().

GitOrigin-RevId: 396dfde586a96e7db5a635d0c8687237afb28184
This commit is contained in:
levlam 2020-05-19 15:10:46 +03:00
parent 1eb7663769
commit 05e72d2011

View File

@ -33,8 +33,8 @@ class DialogFilterId {
}
bool is_valid() const {
// don't check min() and max() for greater future flexibility
return id > 0;
// don't check max() for greater future flexibility
return id >= min().get();
}
int32 get() const {