Skip to content

Commit

Permalink
sms prefill android support
Browse files Browse the repository at this point in the history
  • Loading branch information
jho44 committed Aug 29, 2023
1 parent 47bca83 commit 21ce954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/circle/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
return circleInviteMsg(user, kidNames, inviteesPhone);
}
function smsInviteEncoded(msg: string) {
return `sms:${inviteesPhone}?&body=${encodeURIComponent(msg)}`;
return `sms:${inviteesPhone};?&body=${encodeURIComponent(msg)}`;
}
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/dashboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<p>Contacts to set up a play date:</p>
<ul>
{#each households[overlap.householdId].parents as contact}
<li>{contact.name} - <a href="tel:{contact.phone}">{contact.phone}</a></li>
<li>{contact.name} - <a href="sms:{contact.phone}">{contact.phone}</a></li>
{/each}
</ul>
</div>
Expand Down Expand Up @@ -163,7 +163,7 @@
>{households[householdId].name} ({households[householdId].kids.join(', ')})</a
>
{#each households[householdId].parents as contact}
<p class="parent">{contact.name} - <a href="tel:{contact.phone}">{contact.phone}</a></p>
<p class="parent">{contact.name} - <a href="sms:{contact.phone}">{contact.phone}</a></p>
{/each}

{#if !scheds.length}
Expand Down

0 comments on commit 21ce954

Please sign in to comment.