mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
message stuff
This commit is contained in:
1 parent
e7612066dc
commit
f7b8517155
4 files changed
+29
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user