more user profile work
This commit is contained in:
parent
1f3b9a3905
commit
3274a27f9e
3 changed files with 13 additions and 11 deletions
|
|
@ -13,9 +13,9 @@ const emptyTl = (name, argument = null) => {
|
|||
statuses: new Map(),
|
||||
visibleStatusesIds: new Set(),
|
||||
newStatusCount: 0,
|
||||
maxId: 0,
|
||||
minId: 0,
|
||||
minVisibleId: 0,
|
||||
maxId: '',
|
||||
minId: '',
|
||||
minVisibleId: '',
|
||||
loading: false,
|
||||
flushMarker: 0,
|
||||
fetcher: null,
|
||||
|
|
@ -167,13 +167,13 @@ export const useTimelinesStore = defineStore('timelines', {
|
|||
const minNew = pagination.maxId ?? min(...statuses) ?? ''
|
||||
const maxNew = pagination.minId ?? max(...statuses) ?? ''
|
||||
|
||||
const newer = maxNew > timeline.maxId || timeline.maxId === ''
|
||||
const older = minNew < timeline.minId || timeline.minId === ''
|
||||
const newer = maxNew > timeline.maxId
|
||||
const older = minNew < timeline.minId
|
||||
|
||||
if (newer) {
|
||||
if (newer || timeline.maxId === '') {
|
||||
timeline.maxId = maxNew
|
||||
}
|
||||
if (older) {
|
||||
if (older || timeline.minId === '') {
|
||||
timeline.minId = minNew
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue