Skip to content

Commit

Permalink
less intrusive reaction on the restoring websocket connection in Chat…
Browse files Browse the repository at this point in the history
…List.vue and MessageList.vue
  • Loading branch information
nkonev committed Dec 27, 2024
1 parent 46eb2e0 commit 2980ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/ChatList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export default {
},
onWsRestoredRefresh() {
this.saveLastVisibleElement();
this.initializeHashVariablesAndReloadItems();
this.doOnFocus();
},
async onProfileSet() {
await this.initializeHashVariablesAndReloadItems();
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/MessageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@
},
onWsRestoredRefresh() {
this.saveLastVisibleElement(this.storedChatId);
this.initializeHashVariablesAndReloadItems();
this.doOnFocus();
},
onReactionChanged(dto) {
const foundMessage = this.items.find(item => item.id == dto.messageId);
Expand Down Expand Up @@ -704,7 +704,6 @@
},
created() {
this.onSearchStringChangedDebounced = debounce(this.onSearchStringChangedDebounced, 700, {leading:false, trailing:true});
this.onWsRestoredRefresh = debounce(this.onWsRestoredRefresh, 300, {leading:false, trailing:true});
},
watch: {
Expand Down

0 comments on commit 2980ed8

Please sign in to comment.