mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-09 23:53:04 +00:00
minor cleanup
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
6a3ece6703
commit
beb7b150be
@ -193,8 +193,6 @@ class OfflineFirstChatRepository @Inject constructor(
|
||||
networkParams.putSerializable(BundleKeys.KEY_FIELD_MAP, fieldMap)
|
||||
|
||||
val resultsFromSync = sync(networkParams)
|
||||
|
||||
Log.d(TAG, "got result from longpolling")
|
||||
if (!resultsFromSync.isNullOrEmpty()) {
|
||||
val chatMessages = resultsFromSync.map(ChatMessageEntity::asModel)
|
||||
val pair = Pair(true, chatMessages)
|
||||
@ -203,18 +201,6 @@ class OfflineFirstChatRepository @Inject constructor(
|
||||
|
||||
updateUiForLastCommonRead(0)
|
||||
|
||||
// Process read status if not null
|
||||
// val lastKnown = datastore.getLastKnownId(internalConversationId, 0)
|
||||
// list = list.map { chatMessage ->
|
||||
// chatMessage.readStatus = if (chatMessage.jsonMessageId <= lastKnown) {
|
||||
// ReadStatus.READ
|
||||
// } else {
|
||||
// ReadStatus.SENT
|
||||
// }
|
||||
//
|
||||
// return@map chatMessage
|
||||
// }
|
||||
|
||||
val newestMessage = chatDao.getNewestMessageId(internalConversationId).toInt()
|
||||
|
||||
// update field map vars for next cycle
|
||||
|
Loading…
Reference in New Issue
Block a user