Skip to content

Commit

Permalink
feat: add double very short vibration for last reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
aineo committed Jul 12, 2024
1 parent b4c1bf7 commit ca54214
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/chat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/views/Vibro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</div>
</template>
<script>
import { vibrate } from '@/lib/vibrate.js'
import { vibrate } from '@/lib/vibrate'
export default {
data: () => ({
vibro: undefined
Expand Down

0 comments on commit ca54214

Please sign in to comment.