|
@@ -46,6 +46,7 @@ import com.nextcloud.talk.controllers.util.viewBinding
|
|
|
import com.nextcloud.talk.databinding.ControllerEntryMenuBinding
|
|
|
import com.nextcloud.talk.models.json.conversations.Conversation
|
|
|
import com.nextcloud.talk.utils.ShareUtils
|
|
|
+import com.nextcloud.talk.utils.UriUtils
|
|
|
import com.nextcloud.talk.utils.bundle.BundleKeys
|
|
|
import com.nextcloud.talk.utils.database.user.UserUtils
|
|
|
import com.nextcloud.talk.utils.singletons.ApplicationWideMessageHolder
|
|
@@ -117,9 +118,11 @@ class EntryMenuController(args: Bundle) :
|
|
|
override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {
|
|
|
// unused atm
|
|
|
}
|
|
|
+
|
|
|
override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {
|
|
|
// unused atm
|
|
|
}
|
|
|
+
|
|
|
override fun afterTextChanged(s: Editable) {
|
|
|
if (!TextUtils.isEmpty(s)) {
|
|
|
if (operation === ConversationOperationEnum.OPS_CODE_RENAME_ROOM) {
|
|
@@ -143,10 +146,7 @@ class EntryMenuController(args: Bundle) :
|
|
|
}
|
|
|
binding.textInputLayout.isErrorEnabled = false
|
|
|
} else if (
|
|
|
- (
|
|
|
- binding.textEdit.text.toString().startsWith("http://") ||
|
|
|
- binding.textEdit.text.toString().startsWith("https://")
|
|
|
- ) &&
|
|
|
+ UriUtils.hasHttpProtocollPrefixed(binding.textEdit.text.toString()) &&
|
|
|
binding.textEdit.text.toString().contains("/call/")
|
|
|
) {
|
|
|
if (!binding.okButton.isEnabled) {
|