Fix quality check errors
This commit is contained in:
parent
9953d0d0ed
commit
2054c577f3
@ -1,11 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 New Vector Ltd
|
* Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -275,7 +275,11 @@ private fun createEventEntity(roomId: String, event: Event, realm: Realm): Event
|
|||||||
* Create an EventEntity for the latest thread event or get an existing one. Also update the user room member
|
* Create an EventEntity for the latest thread event or get an existing one. Also update the user room member
|
||||||
* state
|
* state
|
||||||
*/
|
*/
|
||||||
private fun createLatestEventEntity(roomId: String, rootThreadEvent: Event, roomMemberContentsByUser: HashMap<String, RoomMemberContent?>, realm: Realm): EventEntity? {
|
private fun createLatestEventEntity(
|
||||||
|
roomId: String,
|
||||||
|
rootThreadEvent: Event,
|
||||||
|
roomMemberContentsByUser: HashMap<String, RoomMemberContent?>,
|
||||||
|
realm: Realm): EventEntity? {
|
||||||
return getLatestEvent(rootThreadEvent)?.let {
|
return getLatestEvent(rootThreadEvent)?.let {
|
||||||
it.senderId?.let { senderId ->
|
it.senderId?.let { senderId ->
|
||||||
roomMemberContentsByUser.addSenderState(realm, roomId, senderId)
|
roomMemberContentsByUser.addSenderState(realm, roomId, senderId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user