Load more notifications when scrolling down
This commit is contained in:
parent
23400a5a70
commit
59adcc1744
6 changed files with 97 additions and 30 deletions
|
@ -3184,7 +3184,10 @@ async fn get_notifications(
|
|||
.map(|id| db::NotificationId::from_proto(id)),
|
||||
)
|
||||
.await?;
|
||||
response.send(proto::GetNotificationsResponse { notifications })?;
|
||||
response.send(proto::GetNotificationsResponse {
|
||||
done: notifications.len() < NOTIFICATION_COUNT_PER_PAGE,
|
||||
notifications,
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue