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
e50d1438
Commit
e50d1438
authored
Jun 12, 2018
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrap getMessageReadReceipts call in retryIO
parent
f4bc2d1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
MessageInfoPresenter.kt
...roid/chatinformation/presentation/MessageInfoPresenter.kt
+5
-2
MessageInfoFragment.kt
.../rocket/android/chatinformation/ui/MessageInfoFragment.kt
+1
-1
item_read_receipt.xml
app/src/main/res/layout/item_read_receipt.xml
+1
-1
No files found.
app/src/main/java/chat/rocket/android/chatinformation/presentation/MessageInfoPresenter.kt
View file @
e50d1438
...
@@ -8,6 +8,7 @@ import chat.rocket.android.server.domain.GetCurrentServerInteractor
...
@@ -8,6 +8,7 @@ import chat.rocket.android.server.domain.GetCurrentServerInteractor
import
chat.rocket.android.server.domain.MessagesRepository
import
chat.rocket.android.server.domain.MessagesRepository
import
chat.rocket.android.server.infraestructure.ConnectionManagerFactory
import
chat.rocket.android.server.infraestructure.ConnectionManagerFactory
import
chat.rocket.android.util.extensions.launchUI
import
chat.rocket.android.util.extensions.launchUI
import
chat.rocket.android.util.retryIO
import
chat.rocket.common.RocketChatException
import
chat.rocket.common.RocketChatException
import
chat.rocket.core.internal.rest.getMessageReadReceipts
import
chat.rocket.core.internal.rest.getMessageReadReceipts
import
chat.rocket.core.internal.rest.queryUsers
import
chat.rocket.core.internal.rest.queryUsers
...
@@ -30,7 +31,9 @@ class MessageInfoPresenter @Inject constructor(
...
@@ -30,7 +31,9 @@ class MessageInfoPresenter @Inject constructor(
launchUI
(
strategy
)
{
launchUI
(
strategy
)
{
try
{
try
{
view
.
showLoading
()
view
.
showLoading
()
val
readReceipts
=
client
.
getMessageReadReceipts
(
messageId
=
messageId
).
result
val
readReceipts
=
retryIO
(
description
=
"getMessageReadReceipts"
)
{
client
.
getMessageReadReceipts
(
messageId
=
messageId
).
result
}
view
.
showReadReceipts
(
mapper
.
map
(
readReceipts
))
view
.
showReadReceipts
(
mapper
.
map
(
readReceipts
))
}
catch
(
ex
:
RocketChatException
)
{
}
catch
(
ex
:
RocketChatException
)
{
Timber
.
e
(
ex
)
Timber
.
e
(
ex
)
...
@@ -40,4 +43,4 @@ class MessageInfoPresenter @Inject constructor(
...
@@ -40,4 +43,4 @@ class MessageInfoPresenter @Inject constructor(
}
}
}
}
}
}
}
}
\ No newline at end of file
app/src/main/java/chat/rocket/android/chatinformation/ui/MessageInfoFragment.kt
View file @
e50d1438
...
@@ -108,4 +108,4 @@ class MessageInfoFragment : Fragment(), MessageInfoView {
...
@@ -108,4 +108,4 @@ class MessageInfoFragment : Fragment(), MessageInfoView {
companion
object
{
companion
object
{
const
val
TAG_MESSAGE_INFO_FRAGMENT
=
"MessageInfoFragment"
const
val
TAG_MESSAGE_INFO_FRAGMENT
=
"MessageInfoFragment"
}
}
}
}
\ No newline at end of file
app/src/main/res/layout/item_read_receipt.xml
View file @
e50d1438
...
@@ -41,4 +41,4 @@
...
@@ -41,4 +41,4 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"04/06/2018 14:18:36"
/>
tools:text=
"04/06/2018 14:18:36"
/>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
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