Skip to content

Commit

Permalink
Use message.getCreatedAtOrNull()
Browse files Browse the repository at this point in the history
  • Loading branch information
JcMinarro committed Dec 11, 2023
1 parent e1f75a0 commit 8c369de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ public class MessageListController(
private fun getNewMessageStateForMessage(message: Message): NewMessageState {
val currentUser = user.value
return when (message.user.id == currentUser?.id) {
true -> MyOwn(ts = message.createdAt?.time ?: message.createdLocallyAt?.time)
true -> MyOwn(ts = message.getCreatedAtOrNull()?.time)
else -> Other(ts = message.createdAt?.time)
}
}
Expand Down

0 comments on commit 8c369de

Please sign in to comment.