Pills: cleanup

This commit is contained in:
Benoit Marty 2019-11-28 21:40:44 +01:00
parent f984758d37
commit f11cd47df3
2 changed files with 5 additions and 7 deletions

View file

@ -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
}

View file

@ -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 {