Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-01-13 15:17:15 +01:00
parent 03515ea592
commit 53bb90146b
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0

View File

@ -120,8 +120,8 @@ open class ConversationsPresenter(context: Context, onElementClick: ((Page, Hold
conversation.lastMessage!!.lastMessageDisplayText
)
} else {
authorDisplayName = if (!TextUtils.isEmpty(conversation.lastMessage!!.actorDisplayName))
conversation.lastMessage!!.actorDisplayName
authorDisplayName = if (!TextUtils.isEmpty(conversation.lastMessage?.actorDisplayName)) {
conversation.lastMessage?.actorDisplayName!!.substringBefore(" ") }
else if ("guests" == conversation.lastMessage!!.actorType)
context.getString(R.string.nc_guest)
else