mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
Redirect when new msg group is created, and use contacts to push a new message from there
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user