File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ export default class DefaultLayout extends Vue {
5050 channel .bind (' phone.updated' , () => {
5151 this .canPoll = true
5252 })
53+ channel .bind (' message.phone.received' , () => {
54+ this .canPoll = true
55+ })
5356
5457 this .startPoller ()
5558 }, 10_000 ) // delay so that the auth user is present
@@ -73,8 +76,9 @@ export default class DefaultLayout extends Vue {
7376 if (this .$store .getters .getAuthUser && this .$store .getters .getOwner ) {
7477 setAuthHeader ((await this .$fire .auth .currentUser ?.getIdToken ()) ?? ' ' )
7578 promises .push (
76- promises . push ( this .$store .dispatch (' loadPhones' , true ) ),
79+ this .$store .dispatch (' loadPhones' , true ),
7780 this .$store .dispatch (' loadThreads' ),
81+ this .$store .dispatch (' loadMessages' ),
7882 this .$store .dispatch (' getHeartbeat' ),
7983 )
8084 }
You can’t perform that action at this time.
0 commit comments