mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 14:08:44 +03:00
Add comment about copy/paste code
This commit is contained in:
parent
289b7e2d53
commit
36b7617483
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ package im.vector.app.features.displayname
|
|||
import org.matrix.android.sdk.api.util.MatrixItem
|
||||
|
||||
fun MatrixItem.getBestName(): String {
|
||||
// Note: this code is copied from [DisplayNameResolver] in the SDK
|
||||
return if (this is MatrixItem.GroupItem || this is MatrixItem.RoomAliasItem) {
|
||||
// Best name is the id, and we keep the displayName of the room for the case we need the first letter
|
||||
id
|
||||
|
|
Loading…
Reference in a new issue