Redirect when new msg group is created, and use contacts to push a new message from there

This commit is contained in:
J Francisco Rader committed 2021-02-16 17:10:45 -05:00
1 parent 3bf098c5ee
commit b93d5faee1
10 files changed
+195 -88

No files matched your search

@@ -43,13 +43,13 @@ export const ContactList = () => {
});
};
const handleMessage = () => {
const handleMessage = (phoneNumber: string) => {
LogDebugEvent({
action: 'Routing to Message',
level: 1,
data: true,
data: { phoneNumber },
});
// TODO: Integrate to send to message event when route becomes available
history.push(`/messages/new/${phoneNumber}`);
};
const filteredRegEx = new RegExp(filteredContacts, 'gi');
@@ -82,7 +82,7 @@ export const ContactList = () => {
<Button onClick={() => startCall(contact.number)}>
<PhoneIcon />
</Button>
<Button onClick={() => handleMessage()}>
<Button onClick={() => handleMessage(contact.number)}>
<ChatIcon />
</Button>
<Button