From ca54214ec6afb03c4f83571dcaec976ab5617cd6 Mon Sep 17 00:00:00 2001 From: aineo <124525926+aineo@users.noreply.github.com> Date: Sat, 13 Jul 2024 00:28:02 +0300 Subject: [PATCH] feat: add double very short vibration for last reaction --- src/store/modules/chat/index.js | 4 ++-- src/views/Vibro.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/modules/chat/index.js b/src/store/modules/chat/index.js index 68f575583..9f6c217ee 100644 --- a/src/store/modules/chat/index.js +++ b/src/store/modules/chat/index.js @@ -19,7 +19,7 @@ import { } from '@/lib/constants' import { isStringEqualCI } from '@/lib/textHelpers' import { replyMessageAsset } from '@/lib/adamant-api/asset' -// import { vibrate } from '@/lib/vibrate' +import { vibrate } from '@/lib/vibrate' import { generateAdamantChats } from './utils/generateAdamantChats' @@ -873,7 +873,7 @@ const actions = { const updateFn = type === ART.Incoming ? 'updateAnimateIncomingReaction' : 'updateAnimateOutgoingReaction' - // navigator.userAgentData.mobile && vibrate.doubleVeryShort() + navigator.userAgentData.mobile && vibrate.doubleVeryShort() commit(updateFn, true) const timeout = setTimeout(() => commit(updateFn, false), 1500) diff --git a/src/views/Vibro.vue b/src/views/Vibro.vue index cc0e87363..cd3c4a194 100644 --- a/src/views/Vibro.vue +++ b/src/views/Vibro.vue @@ -47,7 +47,7 @@