Skip to content
Snippets Groups Projects
Commit 220f8e35 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Undo attempt at fixing IRCCloud avatar rendering

parent 95806315
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ data class DisplayMessage(
val tag = Tag(content.messageId, content.followUp, isSelected, isExpanded, isMarkerLine)
val avatarUrl = content.sender.let {
Regex("~?[us]id(\\d+)").matchEntire(HostmaskHelper.user(it))?.groupValues?.lastOrNull()?.let {
Regex("[us]id(\\d+)").matchEntire(HostmaskHelper.user(it))?.groupValues?.lastOrNull()?.let {
"https://www.irccloud.com/avatar-redirect/$it"
}
}
......
......@@ -182,7 +182,7 @@ class QuasselViewModel : ViewModel() {
user.realName(),
user.isAway(),
network.support("CASEMAPPING"),
Regex("~?[us]id(\\d+)").matchEntire(user.user())?.groupValues?.lastOrNull()?.let {
Regex("[us]id(\\d+)").matchEntire(user.user())?.groupValues?.lastOrNull()?.let {
"https://www.irccloud.com/avatar-redirect/$it"
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment