Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
2c9576af
Commit
2c9576af
authored
Feb 02, 2018
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix imports
parent
691a6c76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MessageViewModel.kt
...hat/rocket/android/chatroom/viewmodel/MessageViewModel.kt
+1
-1
MessageParser.kt
...src/main/java/chat/rocket/android/helper/MessageParser.kt
+2
-2
No files found.
app/src/main/java/chat/rocket/android/chatroom/viewmodel/MessageViewModel.kt
View file @
2c9576af
...
...
@@ -16,12 +16,12 @@ import chat.rocket.android.server.domain.USE_REALNAME
import
chat.rocket.common.model.Token
import
chat.rocket.core.model.Message
import
chat.rocket.core.model.MessageType.*
import
chat.rocket.core.model.Url
import
chat.rocket.core.model.Value
import
chat.rocket.core.model.attachment.AudioAttachment
import
chat.rocket.core.model.attachment.FileAttachment
import
chat.rocket.core.model.attachment.ImageAttachment
import
chat.rocket.core.model.attachment.VideoAttachment
import
chat.rocket.core.model.url.Url
import
okhttp3.HttpUrl
import
timber.log.Timber
...
...
app/src/main/java/chat/rocket/android/helper/MessageParser.kt
View file @
2c9576af
...
...
@@ -15,7 +15,7 @@ import android.text.style.*
import
android.view.View
import
chat.rocket.android.R
import
chat.rocket.android.chatroom.viewmodel.MessageViewModel
import
chat.rocket.core.model.Url
import
chat.rocket.core.model.
url.
Url
import
org.commonmark.node.BlockQuote
import
ru.noties.markwon.Markwon
import
ru.noties.markwon.SpannableBuilder
...
...
@@ -163,7 +163,7 @@ class MessageParser @Inject constructor(val context: Application, private val co
}
}
class
UsernameClickableSpan
:
ClickableSpan
()
{
class
UsernameClickableSpan
:
ClickableSpan
()
{
override
fun
onClick
(
widget
:
View
)
{
//TODO: Implement action when clicking on username, like showing user profile.
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment