Empty composer when message is sent
This commit is contained in:
parent
c7ab2dd105
commit
031d1e338d
5 changed files with 48 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue