mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
[Client] Fix bug
This commit is contained in:
parent
5c45e00cc3
commit
f442405df8
@ -176,6 +176,7 @@
|
|||||||
width 100%
|
width 100%
|
||||||
padding 16px
|
padding 16px
|
||||||
color #555
|
color #555
|
||||||
|
border-top solid 1px rgba(0, 0, 0, 0.05)
|
||||||
|
|
||||||
> .empty
|
> .empty
|
||||||
margin 0
|
margin 0
|
||||||
@ -251,9 +252,8 @@
|
|||||||
const max = 30;
|
const max = 30;
|
||||||
|
|
||||||
this.api('i/notifications', {
|
this.api('i/notifications', {
|
||||||
folder_id: this.folder ? this.folder.id : null,
|
|
||||||
limit: max + 1,
|
limit: max + 1,
|
||||||
max_id: this.notifications[this.notifications.length - 1]._id
|
max_id: this.notifications[this.notifications.length - 1].id
|
||||||
}).then(notifications => {
|
}).then(notifications => {
|
||||||
if (notifications.length == max + 1) {
|
if (notifications.length == max + 1) {
|
||||||
this.moreNotifications = true;
|
this.moreNotifications = true;
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
width 100%
|
width 100%
|
||||||
padding 16px
|
padding 16px
|
||||||
color #555
|
color #555
|
||||||
|
border-top solid 1px rgba(0, 0, 0, 0.05)
|
||||||
|
|
||||||
> .empty
|
> .empty
|
||||||
margin 0
|
margin 0
|
||||||
@ -121,9 +122,8 @@
|
|||||||
const max = 30;
|
const max = 30;
|
||||||
|
|
||||||
this.api('i/notifications', {
|
this.api('i/notifications', {
|
||||||
folder_id: this.folder ? this.folder.id : null,
|
|
||||||
limit: max + 1,
|
limit: max + 1,
|
||||||
max_id: this.notifications[this.notifications.length - 1]._id
|
max_id: this.notifications[this.notifications.length - 1].id
|
||||||
}).then(notifications => {
|
}).then(notifications => {
|
||||||
if (notifications.length == max + 1) {
|
if (notifications.length == max + 1) {
|
||||||
this.moreNotifications = true;
|
this.moreNotifications = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user