Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Remoe E.164 validation to phone numbers

Acho Arnold24bf8aec2b72
diff --git a/web/pages/threads/_id/index.vue b/web/pages/threads/_id/index.vue
index 3f1e5848..70515f61 100644
--- a/web/pages/threads/_id/index.vue
+++ b/web/pages/threads/_id/index.vue
@@ -321,7 +321,10 @@ export default Vue.extend({
},
computed: {
contactIsPhoneNumber(): boolean {
- return isValidPhoneNumber(this.$store.getters.getThread.contact)
+ return (
+ isValidPhoneNumber(this.$store.getters.getThread.contact) ||
+ !isNaN(Number(this.$store.getters.getThread.contact))
+ )
},
messageVisibility(): string {
if (this.hideMessages) {