Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
chore: Remove widecard and unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Shailesh351 committed Jun 10, 2019
1 parent 34d3de7 commit 542b2c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package chat.rocket.android.chatroom.presentation

import android.graphics.Bitmap
import android.net.Uri
import android.util.Log
import android.widget.Toast
import chat.rocket.android.R
import chat.rocket.android.analytics.AnalyticsManager
import chat.rocket.android.analytics.event.SubscriptionTypeEvent
Expand All @@ -25,7 +23,17 @@ import chat.rocket.android.emoji.EmojiRepository
import chat.rocket.android.helper.MessageHelper
import chat.rocket.android.helper.UserHelper
import chat.rocket.android.infrastructure.LocalRepository
import chat.rocket.android.server.domain.*
import chat.rocket.android.server.domain.GetCurrentServerInteractor
import chat.rocket.android.server.domain.GetSettingsInteractor
import chat.rocket.android.server.domain.JobSchedulerInteractor
import chat.rocket.android.server.domain.MessagesRepository
import chat.rocket.android.server.domain.PermissionsInteractor
import chat.rocket.android.server.domain.PublicSettings
import chat.rocket.android.server.domain.TokenRepository
import chat.rocket.android.server.domain.UsersRepository
import chat.rocket.android.server.domain.uploadMaxFileSize
import chat.rocket.android.server.domain.uploadMimeTypeFilter
import chat.rocket.android.server.domain.useRealName
import chat.rocket.android.server.infrastructure.ConnectionManagerFactory
import chat.rocket.android.server.infrastructure.state
import chat.rocket.android.util.extension.getByteArray
Expand Down Expand Up @@ -171,12 +179,6 @@ class ChatRoomPresenter @Inject constructor(
done to either fix the load in speed of moderator roles or store the
information locally*/
if (getChatRole()) {

val canRemove = permissions.hasPermission(REMOVE_USER, chatRoomId!!)

Log.d("PERM", chatRoles.toString())
Log.d("PERM", canRemove.toString())

canModerate = isOwnerOrMod()
if (canModerate) {
//FIXME: add this in when moderator page is actually created
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
package chat.rocket.android.userdetails.presentation

import android.util.Log
import chat.rocket.android.chatroom.presentation.ChatRoomNavigator
import chat.rocket.android.chatrooms.domain.FetchChatRoomsInteractor
import chat.rocket.android.core.lifecycle.CancelStrategy
import chat.rocket.android.db.DatabaseManager
import chat.rocket.android.db.model.ChatRoomEntity
import chat.rocket.android.db.model.UserEntity
import chat.rocket.android.server.domain.*
import chat.rocket.android.server.domain.CurrentServerRepository
import chat.rocket.android.server.domain.GetSettingsInteractor
import chat.rocket.android.server.domain.TokenRepository
import chat.rocket.android.server.domain.isJitsiEnabled
import chat.rocket.android.server.domain.PermissionsInteractor
import chat.rocket.android.server.domain.REMOVE_USER
import chat.rocket.android.server.infrastructure.ConnectionManagerFactory
import chat.rocket.android.util.extension.launchUI
import chat.rocket.android.util.extensions.avatarUrl
import chat.rocket.android.util.retryIO
import chat.rocket.common.model.RoomType
import chat.rocket.common.model.roomTypeOf
import chat.rocket.common.util.ifNull
import chat.rocket.core.internal.rest.chatRoomRoles
import chat.rocket.core.internal.rest.createDirectMessage
import chat.rocket.core.internal.rest.kick
import chat.rocket.core.model.ChatRoomRole
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import timber.log.Timber
Expand Down

0 comments on commit 542b2c6

Please sign in to comment.