FIx / crash notification drawer empty nam

This commit is contained in:
Valere 2019-07-09 17:35:50 +02:00
parent 34ac987494
commit fc302c1b5a

View File

@ -184,7 +184,7 @@ class NotificationDrawerManager @Inject constructor(private val context: Context


val session = activeSessionHolder.getActiveSession() val session = activeSessionHolder.getActiveSession()
val user = session.getUser(session.sessionParams.credentials.userId) val user = session.getUser(session.sessionParams.credentials.userId)
val myUserDisplayName = user?.displayName ?: "" val myUserDisplayName = user?.displayName ?: session.sessionParams.credentials.userId
val myUserAvatarUrl = session.contentUrlResolver().resolveThumbnail(user?.avatarUrl, avatarSize, avatarSize, ContentUrlResolver.ThumbnailMethod.SCALE) val myUserAvatarUrl = session.contentUrlResolver().resolveThumbnail(user?.avatarUrl, avatarSize, avatarSize, ContentUrlResolver.ThumbnailMethod.SCALE)
synchronized(eventList) { synchronized(eventList) {