瀏覽代碼

Delete unused methods

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 2 年之前
父節點
當前提交
eab052d2ac
共有 1 個文件被更改,包括 0 次插入21 次删除
  1. 0 21
      app/src/main/java/com/nextcloud/talk/data/user/model/User.kt

+ 0 - 21
app/src/main/java/com/nextcloud/talk/data/user/model/User.kt

@@ -43,30 +43,9 @@ data class User(
     var scheduledForDeletion: Boolean = FALSE
 ) : Parcelable {
 
-    fun getMaxMessageLength(): Int {
-        return (capabilities?.spreedCapability?.config?.get("chat")?.get("max-length") as? String)?.toInt()
-            ?: DEFAULT_CHAT_MESSAGE_LENGTH
-    }
-
-    fun getAttachmentsConfig(key: String): Any? {
-        return capabilities?.spreedCapability?.config?.get("attachments")?.get(key)
-    }
-
-    fun canUserCreateGroupConversations(): Boolean {
-        val canCreateValue = capabilities?.spreedCapability?.config?.get("conversations")?.get("can-create") as? String
-        canCreateValue?.let {
-            return it.toBoolean()
-        }
-        return true
-    }
-
     fun getCredentials(): String = ApiUtils.getCredentials(username, token)
 
     fun hasSpreedFeatureCapability(capabilityName: String): Boolean {
         return capabilities?.spreedCapability?.features?.contains(capabilityName) ?: false
     }
-
-    companion object {
-        const val DEFAULT_CHAT_MESSAGE_LENGTH: Int = 1000
-    }
 }