Avoid using displayName for displaying purpose (#2101)
This commit is contained in:
parent
ee69879c0b
commit
cf642d9eb0
3 changed files with 3 additions and 3 deletions
|
@ -167,7 +167,7 @@ fun Account.toEntity() =
|
||||||
ConversationAccountEntity(
|
ConversationAccountEntity(
|
||||||
id,
|
id,
|
||||||
username,
|
username,
|
||||||
displayName.orEmpty(),
|
name,
|
||||||
avatar,
|
avatar,
|
||||||
emojis ?: emptyList()
|
emojis ?: emptyList()
|
||||||
)
|
)
|
||||||
|
|
|
@ -298,7 +298,7 @@ fun Account.toEntity(accountId: Long, gson: Gson): TimelineAccountEntity {
|
||||||
timelineUserId = accountId,
|
timelineUserId = accountId,
|
||||||
localUsername = localUsername,
|
localUsername = localUsername,
|
||||||
username = username,
|
username = username,
|
||||||
displayName = displayName.orEmpty(),
|
displayName = name,
|
||||||
url = url,
|
url = url,
|
||||||
avatar = avatar,
|
avatar = avatar,
|
||||||
emojis = gson.toJson(emojis),
|
emojis = gson.toJson(emojis),
|
||||||
|
|
|
@ -52,7 +52,7 @@ public final class ViewDataUtils {
|
||||||
.setSensitive(visibleStatus.getSensitive())
|
.setSensitive(visibleStatus.getSensitive())
|
||||||
.setIsShowingSensitiveContent(alwaysShowSensitiveMedia || !visibleStatus.getSensitive())
|
.setIsShowingSensitiveContent(alwaysShowSensitiveMedia || !visibleStatus.getSensitive())
|
||||||
.setSpoilerText(visibleStatus.getSpoilerText())
|
.setSpoilerText(visibleStatus.getSpoilerText())
|
||||||
.setRebloggedByUsername(status.getReblog() == null ? null : status.getAccount().getDisplayName())
|
.setRebloggedByUsername(status.getReblog() == null ? null : status.getAccount().getName())
|
||||||
.setUserFullName(visibleStatus.getAccount().getName())
|
.setUserFullName(visibleStatus.getAccount().getName())
|
||||||
.setVisibility(visibleStatus.getVisibility())
|
.setVisibility(visibleStatus.getVisibility())
|
||||||
.setSenderId(visibleStatus.getAccount().getId())
|
.setSenderId(visibleStatus.getAccount().getId())
|
||||||
|
|
Loading…
Reference in a new issue