mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Pills: cleanup
This commit is contained in:
parent
f984758d37
commit
f11cd47df3
2 changed files with 5 additions and 7 deletions
|
@ -13,6 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package im.vector.matrix.android.api.session.room.send
|
||||
|
||||
/**
|
||||
|
@ -20,6 +21,6 @@ package im.vector.matrix.android.api.session.room.send
|
|||
* These Spans will be transformed into pills when detected in message to send
|
||||
*/
|
||||
interface UserMentionSpan {
|
||||
abstract val displayName: String
|
||||
abstract val userId: String
|
||||
val displayName: String
|
||||
val userId: String
|
||||
}
|
||||
|
|
|
@ -87,11 +87,8 @@ class TextComposerView @JvmOverloads constructor(context: Context, attrs: Attrib
|
|||
}
|
||||
|
||||
sendButton.setOnClickListener {
|
||||
val textMessage = text?.toSpannable()
|
||||
callback?.onSendMessage(
|
||||
textMessage
|
||||
?: ""
|
||||
)
|
||||
val textMessage = text?.toSpannable() ?: ""
|
||||
callback?.onSendMessage(textMessage)
|
||||
}
|
||||
|
||||
attachmentButton.setOnClickListener {
|
||||
|
|
Loading…
Add table
Reference in a new issue