Enable the poll history in release mode

This commit is contained in:
Maxime NATUREL 2023-02-02 17:33:24 +01:00
parent d84eca6a9a
commit fb5fe9bc1d
1 changed files with 8 additions and 10 deletions

View File

@ -18,7 +18,6 @@
package im.vector.app.features.roomprofile package im.vector.app.features.roomprofile
import com.airbnb.epoxy.TypedEpoxyController import com.airbnb.epoxy.TypedEpoxyController
import im.vector.app.BuildConfig
import im.vector.app.R import im.vector.app.R
import im.vector.app.core.epoxy.expandableTextItem import im.vector.app.core.epoxy.expandableTextItem
import im.vector.app.core.epoxy.profiles.buildProfileAction import im.vector.app.core.epoxy.profiles.buildProfileAction
@ -265,15 +264,14 @@ class RoomProfileController @Inject constructor(
action = { callback?.onBannedMemberListClicked() } action = { callback?.onBannedMemberListClicked() }
) )
} }
if (BuildConfig.DEBUG) {
// WIP, will be in release when related screens will be finished
buildProfileAction( buildProfileAction(
id = "poll_history", id = "poll_history",
title = stringProvider.getString(R.string.room_profile_section_more_polls), title = stringProvider.getString(R.string.room_profile_section_more_polls),
icon = R.drawable.ic_attachment_poll, icon = R.drawable.ic_attachment_poll,
action = { callback?.onPollHistoryClicked() } action = { callback?.onPollHistoryClicked() }
) )
}
buildProfileAction( buildProfileAction(
id = "uploads", id = "uploads",
title = stringProvider.getString(R.string.room_profile_section_more_uploads), title = stringProvider.getString(R.string.room_profile_section_more_uploads),