fix(presenceUpdate): fire when only state/details change on an activity (#5846)

This commit is contained in:
Jacob Morrison
2021-06-19 12:27:54 -04:00
committed by GitHub
parent 44e2ee7b20
commit 1f8f3ab0f8

View File

@@ -275,7 +275,12 @@ class Activity {
equals(activity) {
return (
this === activity ||
(activity && this.name === activity.name && this.type === activity.type && this.url === activity.url)
(activity &&
this.name === activity.name &&
this.type === activity.type &&
this.url === activity.url &&
this.state === activity.state &&
this.details === activity.details)
);
}