Empty composer when message is sent

This commit is contained in:
Benoit Marty
2022-11-09 10:26:39 +01:00
parent e27d55115d
commit dccb83fe76
5 changed files with 48 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
package io.element.android.x.core.data
/**
* Wrapper for a CharSequence, which support mutation of the CharSequence.
*/
class StableCharSequence(val charSequence: CharSequence) {
private val hash = charSequence.toString().hashCode()
override fun hashCode() = hash
override fun equals(other: Any?) = other is StableCharSequence && other.hash == hash
}