This commit is contained in:
Benoit Marty 2020-05-29 11:07:03 +02:00 committed by Valere
parent 928da82dde
commit ae762aa928
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ import im.vector.matrix.android.internal.network.NetworkConstants
import retrofit2.Call
import retrofit2.http.GET
// TODO Move to internal
internal interface VoipApi {
@GET(NetworkConstants.URI_API_PREFIX_PATH_R0 + "voip/turnServer")

View File

@ -370,7 +370,7 @@ class RoomDetailViewModel @AssistedInject constructor(
fun isMenuItemVisible(@IdRes itemId: Int) = when (itemId) {
R.id.clear_message_queue ->
/* For now always disable on production, worker cancellation is not working properly */
// For now always disable when not in developer mode, worker cancellation is not working properly
timeline.pendingEventCount() > 0 && vectorPreferences.developerMode()
R.id.resend_all -> timeline.failedToDeliverEventCount() > 0
R.id.clear_all -> timeline.failedToDeliverEventCount() > 0