-
+
@@ -56,6 +56,9 @@ export default {
updateToot (message) {
this.$store.commit('TimelineSpace/Contents/Favourites/updateToot', message)
},
+ deleteToot (message) {
+ this.$store.commit('TimelineSpace/Contents/Favourites/deleteToot', message)
+ },
onScroll (event) {
if (((event.target.clientHeight + event.target.scrollTop) >= document.getElementById('favourites').clientHeight - 10) && !this.lazyloading) {
this.$store.dispatch('TimelineSpace/Contents/Favourites/lazyFetchFavourites', this.favourites[this.favourites.length - 1])
diff --git a/src/renderer/components/TimelineSpace/Contents/Lists.vue b/src/renderer/components/TimelineSpace/Contents/Lists.vue
index 0ef38644..dd7ca91a 100644
--- a/src/renderer/components/TimelineSpace/Contents/Lists.vue
+++ b/src/renderer/components/TimelineSpace/Contents/Lists.vue
@@ -3,7 +3,7 @@
{{ unread.length > 0 ? unread.length : '' }}
-
+
@@ -90,6 +90,9 @@ export default {
updateToot (message) {
this.$store.commit('TimelineSpace/Contents/Lists/updateToot', message)
},
+ deleteToot (message) {
+ this.$store.commit('TimelineSpace/Contents/Lists/deleteToot', message)
+ },
onScroll (event) {
if (((event.target.clientHeight + event.target.scrollTop) >= document.getElementsByName('lists')[0].clientHeight - 10) && !this.lazyloading) {
this.$store.dispatch('TimelineSpace/Contents/Lists/lazyFetchTimeline', {
diff --git a/src/renderer/components/TimelineSpace/Contents/Local.vue b/src/renderer/components/TimelineSpace/Contents/Local.vue
index 055e030d..b06bcefd 100644
--- a/src/renderer/components/TimelineSpace/Contents/Local.vue
+++ b/src/renderer/components/TimelineSpace/Contents/Local.vue
@@ -3,7 +3,7 @@
{{ unread.length > 0 ? unread.length : '' }}
-
+
@@ -77,6 +77,9 @@ export default {
updateToot (message) {
this.$store.commit('TimelineSpace/Contents/Local/updateToot', message)
},
+ deleteToot (message) {
+ this.$store.commit('TimelineSpace/Contents/Local/deleteToot', message)
+ },
onScroll (event) {
if (((event.target.clientHeight + event.target.scrollTop) >= document.getElementById('local').clientHeight - 10) && !this.lazyloading) {
this.$store.dispatch('TimelineSpace/Contents/Local/lazyFetchTimeline', this.timeline[this.timeline.length - 1])
diff --git a/src/renderer/components/TimelineSpace/Contents/Public.vue b/src/renderer/components/TimelineSpace/Contents/Public.vue
index ec395194..4a40cc93 100644
--- a/src/renderer/components/TimelineSpace/Contents/Public.vue
+++ b/src/renderer/components/TimelineSpace/Contents/Public.vue
@@ -3,7 +3,7 @@
{{ unread.length > 0 ? unread.length : '' }}
-
+
@@ -77,6 +77,9 @@ export default {
updateToot (message) {
this.$store.commit('TimelineSpace/Contents/Public/updateToot', message)
},
+ deleteToot (message) {
+ this.$store.commit('TimelineSpace/Contents/Public/deleteToot', message)
+ },
onScroll (event) {
if (((event.target.clientHeight + event.target.scrollTop) >= document.getElementById('public').clientHeight - 10) && !this.lazyloading) {
this.$store.dispatch('TimelineSpace/Contents/Public/lazyFetchTimeline', this.timeline[this.timeline.length - 1])
diff --git a/src/renderer/store/TimelineSpace/Contents/Favourites.js b/src/renderer/store/TimelineSpace/Contents/Favourites.js
index 38719704..592e552b 100644
--- a/src/renderer/store/TimelineSpace/Contents/Favourites.js
+++ b/src/renderer/store/TimelineSpace/Contents/Favourites.js
@@ -29,6 +29,15 @@ const Favourites = {
}
})
},
+ deleteToot (state, message) {
+ state.timeline = state.timeline.filter((toot) => {
+ if (toot.reblog !== null && toot.reblog.id === message.id) {
+ return false
+ } else {
+ return toot.id !== message.id
+ }
+ })
+ },
changeLazyLoading (state, value) {
state.lazyLoading = value
}
diff --git a/src/renderer/store/TimelineSpace/Contents/Lists.js b/src/renderer/store/TimelineSpace/Contents/Lists.js
index 8c976541..445cfabf 100644
--- a/src/renderer/store/TimelineSpace/Contents/Lists.js
+++ b/src/renderer/store/TimelineSpace/Contents/Lists.js
@@ -53,6 +53,15 @@ const Lists = {
}
})
},
+ deleteToot (state, message) {
+ state.timeline = state.timeline.filter((toot) => {
+ if (toot.reblog !== null && toot.reblog.id === message.id) {
+ return false
+ } else {
+ return toot.id !== message.id
+ }
+ })
+ },
changeLazyLoading (state, value) {
state.lazyLoading = value
}
diff --git a/src/renderer/store/TimelineSpace/Contents/Local.js b/src/renderer/store/TimelineSpace/Contents/Local.js
index 308c634c..84e7c94b 100644
--- a/src/renderer/store/TimelineSpace/Contents/Local.js
+++ b/src/renderer/store/TimelineSpace/Contents/Local.js
@@ -53,6 +53,15 @@ const Local = {
}
})
},
+ deleteToot (state, message) {
+ state.timeline = state.timeline.filter((toot) => {
+ if (toot.reblog !== null && toot.reblog.id === message.id) {
+ return false
+ } else {
+ return toot.id !== message.id
+ }
+ })
+ },
changeLazyLoading (state, value) {
state.lazyLoading = value
}
diff --git a/src/renderer/store/TimelineSpace/Contents/Public.js b/src/renderer/store/TimelineSpace/Contents/Public.js
index 8765a078..8d54c131 100644
--- a/src/renderer/store/TimelineSpace/Contents/Public.js
+++ b/src/renderer/store/TimelineSpace/Contents/Public.js
@@ -53,6 +53,15 @@ const Public = {
}
})
},
+ deleteToot (state, message) {
+ state.timeline = state.timeline.filter((toot) => {
+ if (toot.reblog !== null && toot.reblog.id === message.id) {
+ return false
+ } else {
+ return toot.id !== message.id
+ }
+ })
+ },
changeLazyLoading (state, value) {
state.lazyLoading = value
}