mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 03:49:04 +03:00
Formating code
This commit is contained in:
parent
f7f363ce25
commit
79c97ac512
3 changed files with 8 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||
* Copyright 2022 The Matrix.org Foundation C.I.C.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -56,17 +56,9 @@ internal fun ThreadSummaryEntity.updateThreadSummary(
|
|||
roomMemberContentsByUser: HashMap<String, RoomMemberContent?>) {
|
||||
updateThreadSummaryRootEvent(rootThreadEventEntity, roomMemberContentsByUser)
|
||||
updateThreadSummaryLatestEvent(latestThreadEventEntity, roomMemberContentsByUser)
|
||||
|
||||
// Update latest event
|
||||
// latestThreadEventEntity?.toTimelineEventEntity(roomMemberContentsByUser)?.let {
|
||||
// Timber.i("###THREADS FetchThreadSummariesTask ThreadSummaryEntity updated latest event:${it.eventId} !")
|
||||
// this.eventEntity?.threadSummaryLatestMessage = it
|
||||
// }
|
||||
|
||||
// Update number of threads
|
||||
this.isUserParticipating = isUserParticipating
|
||||
numberOfThreads?.let {
|
||||
// Update only when there is an actual value
|
||||
// Update number of threads only when there is an actual value
|
||||
this.numberOfThreads = it
|
||||
}
|
||||
}
|
||||
|
|
|
@ -197,15 +197,15 @@ internal class EventRelationsAggregationProcessor @Inject constructor(
|
|||
handleReaction(realm, event, roomId, isLocalEcho)
|
||||
}
|
||||
}
|
||||
// TODO is that ok??
|
||||
// HandleInitialAggregatedRelations should also be applied in encrypted messages with annotations
|
||||
// else if (event.unsignedData?.relations?.annotations != null) {
|
||||
// Timber.v("###REACTION e2e Aggregation in room $roomId for event ${event.eventId}")
|
||||
// handleInitialAggregatedRelations(realm, event, roomId, event.unsignedData.relations.annotations)
|
||||
// // EventAnnotationsSummaryEntity.where(realm, roomId, event.eventId ?: "").findFirst()
|
||||
// // ?.let {
|
||||
// // TimelineEventEntity.where(realm, roomId = roomId, eventId = event.eventId ?: "").findAll()
|
||||
// // ?.forEach { tet -> tet.annotations = it }
|
||||
// // }
|
||||
// EventAnnotationsSummaryEntity.where(realm, roomId, event.eventId ?: "").findFirst()
|
||||
// ?.let {
|
||||
// TimelineEventEntity.where(realm, roomId = roomId, eventId = event.eventId ?: "").findAll()
|
||||
// ?.forEach { tet -> tet.annotations = it }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
EventType.REDACTION -> {
|
||||
|
|
Loading…
Reference in a new issue