Skip to content

Commit

Permalink
DEV: adds support for userHasBeenActive (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux authored Oct 5, 2023
1 parent 7995e87 commit 60a7ebf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .discourse-compatibility
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
< 3.2.0.beta2-dev: 7995e87b6c00166553b2fe62f4098624492180a0
3.1.999: 643f807a3a2195f08211064301f0350d9f51604f
3.1.0.beta2: 5484d64d880ce4ba6fba22446d54195a447cd091
2.9.0.beta12: 8f6895403e32e37d5abcd9b3fc1c8141315589e4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export default createWidget("discourse-reactions-actions", {
(this.attrs.post.current_user_reaction.can_undo &&
this.attrs.post.likeAction.canToggle)
) {
if (this.capabilities.canVibrate) {
if (this.capabilities.userHasBeenActive && this.capabilities.canVibrate) {
navigator.vibrate(VIBRATE_DURATION);
}

Expand Down Expand Up @@ -458,7 +458,7 @@ export default createWidget("discourse-reactions-actions", {
return;
}

if (this.capabilities.canVibrate) {
if (this.capabilities.userHasBeenActive && this.capabilities.canVibrate) {
navigator.vibrate(VIBRATE_DURATION);
}

Expand Down

0 comments on commit 60a7ebf

Please sign in to comment.