Comments (4)
Hi @mschuetz-viz, yes correct, the page size limit is 300. So you should use a value lower than that. It is mentioned in the docs for other endpoints, but not for messages actually. We will make sure to update this 👍
Best,
Nuno
from stream-chat-swift.
Actually it is kinda hidden here: https://getstream.io/chat/docs/javascript/channel_pagination/
from stream-chat-swift.
Nice, thanks @nuno-vieira for pointing this out. Wouldn't it make sense that hasLoadedAllPreviousMessages
would return false
in that case? Anyway, nothing that's blocking us 🚀
from stream-chat-swift.
@mschuetz-viz, no because the way hasLoadedAllPreviousMessages
is calculated is with messages.count < pageSize
, that is why it returns true. The message count will be 300 and the pageSize will be 1000. This calculation avoids additional HTTP requests just to check if there are no more messages. 👍 (ofc assuming the page size is below the limit)
from stream-chat-swift.
Related Issues (20)
- Token provider keeps retrying after calling disconnect HOT 5
- Passing an Invalid Token during connection triggers an infinity loop. HOT 3
- Unable to receive push Notifications: error "DeviceTokenNotForTopic" HOT 2
- Missing super.init in AsyncOperation HOT 2
- Error "'shared' is unavailable in application extensions for iOS..." when using UNNotificationServiceExtension HOT 1
- App crash on creating a new 1:1 chat, found nil when unwrapping optional in ListDataBaseObserver HOT 26
- Composer text input not resizing correctly HOT 6
- Message author miscomputed after user id change during the same session HOT 3
- Multiple didUpdateChannel with unreadCount 0 HOT 23
- Upload Image to GetStream CDN HOT 1
- See Original and Translated Message HOT 6
- Message Search Not Working HOT 11
- Custom subview of ChatMessageContentView is not sized correctly HOT 5
- TokenProvider not triggering refresh and causing infinite API calls HOT 5
- Is it possible for me to query a channel to direct message only? HOT 1
- Test
- Mute intervals for channels doesn't seem to work HOT 4
- Extra Data not able to search using contain key it alway give blank response (UserListFilterScope) HOT 2
- Message Search Not Working HOT 1
- Search Channel By User Name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-chat-swift.