Fix formatting

This commit is contained in:
Valere 2019-05-18 09:54:49 +02:00
parent 6eafa3c43d
commit 3fa9d7a1d4
1 changed files with 1 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class MessageMenuViewModel(initialState: MessageMenuState) : VectorViewModel<Mes
this.add(SimpleAction(ACTION_COPY, R.string.copy, R.drawable.ic_copy, messageContent.body))
}
if(canRedact(event, currentSession.sessionParams.credentials.userId)) {
if (canRedact(event, currentSession.sessionParams.credentials.userId)) {
this.add(SimpleAction(ACTION_DELETE, R.string.delete, R.drawable.ic_material_delete, event.root.eventId))
}
@ -174,8 +174,6 @@ class MessageMenuViewModel(initialState: MessageMenuState) : VectorViewModel<Mes
}
private fun canShare(type: String): Boolean {
return when (type) {
MessageType.MSGTYPE_IMAGE,