message stuff

This commit is contained in:
chip committed 2020-11-06 18:12:39 +01:00
1 parent e7612066dc
commit f7b8517155
4 files changed
+29 -4

No files matched your search

+22
View File
@@ -20,6 +20,7 @@ import { useContactsService } from "./apps/contacts/hooks/useContactsService";
import { useTwitterService } from "./apps/twitter/hooks/useTwitterService";
import { useSelloutService } from "./apps/sellout/hooks/useSelloutService";
import { useBankService } from './apps/bank/hooks/useBankService';
import { useMessagesService } from "./apps/messages/hooks/useMessageService";
//These events are just for testing. Comment it out before building.
setTimeout(() => {
@@ -34,6 +35,26 @@ setTimeout(() => {
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
data: {
app: "MESSAGES",
method: "setMessages",
data: [
{
id: 1,
sender: 'chip',
receiver: 'rocky',
sms: 'Hello there',
owner: 1
}
]
}
})
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
@@ -183,6 +204,7 @@ function Phone() {
useInitKeyboard();
useSelloutService();
useBankService();
useMessagesService()
if (visibility === false) {
return null;