Commit 56e1ae12 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Surrounds with retryIO{}

parent 3c7503e1
......@@ -727,7 +727,9 @@ class ChatRoomPresenter @Inject constructor(
launchUI(strategy) {
try {
// Note that if it is favorite then the user wants to unfavorite - and vice versa.
retryIO("favorite($roomId, $isFavorite)") {
client.favorite(roomId, !isFavorite)
}
view.showFavoriteIcon(!isFavorite)
} catch (e: RocketChatException) {
Timber.e(e, "Error while trying to favorite/unfavorite chat room.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment