I changed the way items are requested from controller: added load methods that just get the first batch of data and separated listening to updates. It wasn't possible to add pagination using just the snapshot listeners.
I wasn't able to find a quick way how to add a header to messages list for the load more button so for now it's still in the navigation bar. I could probably add an extra "message" to the top with custom cell that would contain the load more button but maybe you guys will know about a better way 🤔
I changed the way items are requested from controller: added load methods that just get the first batch of data and separated listening to updates. It wasn't possible to add pagination using just the snapshot listeners. I wasn't able to find a quick way how to add a header to messages list for the load more button so for now it's still in the navigation bar. I could probably add an extra "message" to the top with custom cell that would contain the load more button but maybe you guys will know about a better way 🤔