Refactor category channels to react to setting changes and apply the correct order (#7170)

* Refactor category channels to react to setting changes and apply the correct order

* feedback review
This commit is contained in:
Elias Nahum
2023-03-03 15:53:29 +02:00
committed by GitHub
parent 3c046ae39c
commit fe916ec740
11 changed files with 312 additions and 209 deletions

View File

@@ -11,6 +11,7 @@ import com.mattermost.helpers.database_extension.queryCurrentUserId
import com.nozbe.watermelondb.Database
import java.text.Collator
import java.util.Locale
import kotlin.math.max
suspend fun PushNotificationDataRunnable.Companion.fetchMyChannel(db: Database, serverUrl: String, channelId: String, isCRTEnabled: Boolean): Triple<ReadableMap?, ReadableMap?, ReadableArray?> {
val channel = fetch(serverUrl, "/api/v4/channels/$channelId")