Skip to content

Commit b1f4167

Browse files
committed
(clean) add updateFooterLists method
1 parent 239db31 commit b1f4167

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib/Room/RoomFooter/RoomFooter.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,20 +353,15 @@ export default {
353353
}
354354
355355
setTimeout(() => {
356-
this.updateFooterList('@')
357-
this.updateFooterList(':')
358-
this.updateFooterList('/')
356+
this.updateFooterLists()
359357
}, 60)
360358
}),
361359
50
362360
)
363361
364362
this.getTextareaRef().addEventListener('click', () => {
365363
if (isMobile) this.keepKeyboardOpen = true
366-
367-
this.updateFooterList('@')
368-
this.updateFooterList(':')
369-
this.updateFooterList('/')
364+
this.updateFooterLists()
370365
})
371366
372367
this.getTextareaRef().addEventListener('blur', () => {
@@ -663,6 +658,11 @@ export default {
663658
this.messageReply = message
664659
this.focusTextarea()
665660
},
661+
updateFooterLists() {
662+
this.updateFooterList('@')
663+
this.updateFooterList(':')
664+
this.updateFooterList('/')
665+
},
666666
updateFooterList(tagChar) {
667667
if (!this.getTextareaRef()) return
668668

0 commit comments

Comments
 (0)