handle incoming sms

This commit is contained in:
m5r
2021-08-01 18:36:32 +08:00
parent 56e8880715
commit 6cbc7468fb
8 changed files with 87 additions and 17 deletions

View File

@ -9,7 +9,7 @@ export default function useConversation(recipient: string) {
{
select(conversations) {
if (!conversations[recipient]) {
throw new Error("Conversation not found");
return [];
}
return conversations[recipient]!;