Skip to content

Commit

Permalink
fix(chat): Correctly limit editing to bots IN 1-1
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Feb 12, 2025
1 parent 7f64982 commit 2e4c997
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/composables/useMessageInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export function useMessageInfo(message = ref({})) {
const isBotInOneToOne = computed(() =>
message.value.actorId.startsWith(ATTENDEE.BOT_PREFIX)
&& message.value.actorType === ATTENDEE.ACTOR_TYPE.BOTS
&& (conversation.value.type === CONVERSATION.TYPE.ONE_TO_ONE
|| conversation.value.type === CONVERSATION.TYPE.ONE_TO_ONE_FORMER)
)

const isEditable = computed(() => {
Expand Down

0 comments on commit 2e4c997

Please sign in to comment.