updatePosts

fun updatePosts(newPosts: List<Post>)

Updates the posts displayed through the adapter.

Parameters

newPosts

List of new posts to be displayed through the adapter.