Skip to content

Commit 24bf8ae

Browse files
committed
Remoe E.164 validation to phone numbers
1 parent 96211bb commit 24bf8ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/pages/threads/_id/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ export default Vue.extend({
321321
},
322322
computed: {
323323
contactIsPhoneNumber(): boolean {
324-
return isValidPhoneNumber(this.$store.getters.getThread.contact)
324+
return (
325+
isValidPhoneNumber(this.$store.getters.getThread.contact) ||
326+
!isNaN(Number(this.$store.getters.getThread.contact))
327+
)
325328
},
326329
messageVisibility(): string {
327330
if (this.hideMessages) {

0 commit comments

Comments
 (0)