Skip to content

Commit

Permalink
(version) 2.0.5 🔖
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine92190 committed Nov 25, 2022
1 parent af9a042 commit 5e21ee3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
20 changes: 12 additions & 8 deletions dist/vue-advanced-chat.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -7328,7 +7328,7 @@ const _sfc_main$k = {
if (!this.room.users || this.room.users.length !== 2)
return;
const user = this.room.users.find((u) => u._id !== this.currentUserId);
if (!user.status)
if (!(user == null ? void 0 : user.status))
return;
let text2 = "";
if (user.status.state === "online") {
Expand Down Expand Up @@ -28214,11 +28214,12 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
onClick: _cache[8] || (_cache[8] = (...args) => $options.selectMessage && $options.selectMessage(...args))
}, [
renderSlot(_ctx.$slots, "message_" + $props.message._id, {}, () => [
$props.message.avatar && $props.message.senderId !== $props.currentUserId ? renderSlot(_ctx.$slots, "message-avatar_" + $props.message._id, { key: 0 }, () => [
createBaseVNode("div", {
$props.message.senderId !== $props.currentUserId ? renderSlot(_ctx.$slots, "message-avatar_" + $props.message._id, { key: 0 }, () => [
$props.message.avatar ? (openBlock(), createElementBlock("div", {
key: 0,
class: "vac-avatar",
style: normalizeStyle({ "background-image": `url('${$props.message.avatar}')` })
}, null, 4)
}, null, 4)) : createCommentVNode("", true)
]) : createCommentVNode("", true),
$options.hasSenderUserAvatar && !$props.message.avatar ? (openBlock(), createElementBlock("div", _hoisted_5$2)) : createCommentVNode("", true),
createBaseVNode("div", {
Expand Down Expand Up @@ -28374,11 +28375,12 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
onClick: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("open-failed-message", { message: $props.message }))
}, _hoisted_11, 2)) : createCommentVNode("", true)
]),
$props.message.avatar && $props.message.senderId === $props.currentUserId ? renderSlot(_ctx.$slots, "message-avatar_" + $props.message._id, { key: 2 }, () => [
createBaseVNode("div", {
$props.message.senderId === $props.currentUserId ? renderSlot(_ctx.$slots, "message-avatar_" + $props.message._id, { key: 2 }, () => [
$props.message.avatar ? (openBlock(), createElementBlock("div", {
key: 0,
class: "vac-avatar vac-avatar-current",
style: normalizeStyle({ "background-image": `url('${$props.message.avatar}')` })
}, null, 4)
}, null, 4)) : createCommentVNode("", true)
]) : createCommentVNode("", true),
$options.hasCurrentUserAvatar && !$props.message.avatar ? (openBlock(), createElementBlock("div", _hoisted_12)) : createCommentVNode("", true)
])
Expand Down Expand Up @@ -28733,7 +28735,9 @@ const _sfc_main$2 = {
this.$emit("open-user-tag", user);
},
onDropFiles(event) {
this.droppedFiles = event.dataTransfer.files;
if (this.showFiles) {
this.droppedFiles = event.dataTransfer.files;
}
}
}
};
Expand Down
18 changes: 9 additions & 9 deletions dist/vue-advanced-chat.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-advanced-chat",
"version": "2.0.4",
"version": "2.0.5",
"license": "MIT",
"description": "A beautiful chat rooms component made with Vue.js - compatible with Vue, React & Angular",
"author": {
Expand Down

0 comments on commit 5e21ee3

Please sign in to comment.