fix: Auto scroll to bottom when agent sends a message (#3764)

This commit is contained in:
Sivin Varghese 2022-02-17 20:42:13 +05:30 committed by GitHub
parent 2586c8e7e5
commit ea3e011d3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -479,7 +479,7 @@ export default {
'createPendingMessageAndSend',
messagePayload
);
this.$emit(BUS_EVENTS.SCROLL_TO_MESSAGE);
bus.$emit(BUS_EVENTS.SCROLL_TO_MESSAGE);
} catch (error) {
const errorMessage =
error?.response?.data?.error ||