Fix condition for private reply

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-02-24 08:54:34 +01:00
Родитель a112918cf8
Коммит e0c5da4d95
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
1 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -170,7 +170,7 @@ import Quote from '../../../Quote'
import participant from '../../../../mixins/participant'
import { EventBus } from '../../../../services/EventBus'
import emojiRegex from 'emoji-regex'
import { PARTICIPANT, CONVERSATION } from '../../../../constants'
import { PARTICIPANT, CONVERSATION, ATTENDEE } from '../../../../constants'
import moment from '@nextcloud/moment'
import {
showError,
@ -503,9 +503,12 @@ export default {
},
isPrivateReplyable() {
return (this.conversation.type === 3
&& !this.isMyMsg
&& this.actorType !== 'guests')
return this.isReplyable
&& (this.conversation.type === CONVERSATION.TYPE.PUBLIC
|| this.conversation.type === CONVERSATION.TYPE.GROUP)
&& !this.isMyMsg
&& this.actorType === ATTENDEE.ACTOR_TYPE.USERS
&& this.$store.getters.getActorType() === ATTENDEE.ACTOR_TYPE.USERS
},
messageActions() {