initial work on last-status-reply stuff

This commit is contained in:
Henry Jameson 2026-07-09 01:08:09 +03:00
commit a3c3611b8f
3 changed files with 125 additions and 101 deletions

View file

@ -2,6 +2,7 @@ import { clone, filter, findIndex, get, reduce } from 'lodash'
import { mapState as mapPiniaState } from 'pinia'
import { mapState } from 'vuex'
import PostStatusForm from 'src/components/post_status_form/post_status_form.vue'
import ChatMessageList from 'src/components/chat_message_list/chat_message_list.vue'
import QuickFilterSettings from 'src/components/quick_filter_settings/quick_filter_settings.vue'
import QuickViewSettings from 'src/components/quick_view_settings/quick_view_settings.vue'
@ -119,6 +120,10 @@ const conversation = {
const maxDepth = this.mergedConfig.maxDepthInThread - 2
return maxDepth >= 1 ? maxDepth : 1
},
lastStatus() {
console.log('LAST STATUS', this.conversation[this.conversation.length - 1])
return this.conversation[this.conversation.length - 1]
},
streamingEnabled() {
return (
this.mergedConfig.useStreamingApi &&
@ -409,6 +414,7 @@ const conversation = {
QuickFilterSettings,
QuickViewSettings,
ChatMessageList,
PostStatusForm,
},
watch: {
statusId(newVal, oldVal) {