Merge pull request #731 from pangeachat/locked-toolbar-bug
add activity feedback to activity request hashcode to ensure new acti…
This commit is contained in:
commit
5529306ff5
1 changed files with 17 additions and 1 deletions
|
|
@ -156,6 +156,20 @@ class ActivityQualityFeedback {
|
|||
'bad_activity': badActivity.toJson(),
|
||||
};
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) return true;
|
||||
|
||||
return other is ActivityQualityFeedback &&
|
||||
other.feedbackText == feedbackText &&
|
||||
other.badActivity == badActivity;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return feedbackText.hashCode ^ badActivity.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
class MessageActivityRequest {
|
||||
|
|
@ -231,7 +245,9 @@ class MessageActivityRequest {
|
|||
|
||||
@override
|
||||
int get hashCode {
|
||||
return messageId.hashCode ^ const ListEquality().hash(tokensWithXP);
|
||||
return messageId.hashCode ^
|
||||
const ListEquality().hash(tokensWithXP) ^
|
||||
activityQualityFeedback.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue