When loading VirtualLottery we fetch default size of messages from /api/chat/history and append to local chatHistory.
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
<script>
|
||||
import { page, event } from "vue-analytics";
|
||||
import { attendees, winners } from "@/api";
|
||||
import { attendees, winners, getChatHistory } from "@/api";
|
||||
import Chat from "@/ui/Chat";
|
||||
import Vipps from "@/ui/Vipps";
|
||||
import Attendees from "@/ui/Attendees";
|
||||
@@ -61,6 +61,10 @@ export default {
|
||||
emitUsernameOnConnect: false
|
||||
};
|
||||
},
|
||||
created() {
|
||||
getChatHistory()
|
||||
.then(messages => this.chatHistory = messages)
|
||||
},
|
||||
mounted() {
|
||||
this.track();
|
||||
this.getAttendees();
|
||||
|
||||
Reference in New Issue
Block a user