Skip to content

Commit

Permalink
[BUG] No new room created when conversation is closed (#13753)
Browse files Browse the repository at this point in the history
* Fixed livechat closed room

* Fixed some analytics CSS

* Fixed for API
  • Loading branch information
knrt10 authored and renatobecker committed Mar 18, 2019
1 parent df23847 commit 6c08a6f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/livechat/client/stylesheets/livechat.less
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,10 @@
// flex: 1;
}

.border-component-td {
padding: 0.5rem;
}

.lc-analytics-chart-container {
// flex-grow: 100%;
flex: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<tbody>
{{#each data}}
<tr>
<td class="border-component-color">{{name}}</td>
<td class="border-component-color border-component-td">{{name}}</td>
<td class="border-component-color">{{value}}</td>
</tr>
{{/each}}
Expand All @@ -97,4 +97,4 @@
</div>
</div>
{{/requiresPermission}}
</template>
</template>
4 changes: 4 additions & 0 deletions app/livechat/server/api/v1/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ API.v1.addRoute('livechat/message', {
throw new Meteor.Error('invalid-room');
}

if (!room.open) {
throw new Meteor.Error('room-closed');
}

const _id = this.bodyParams._id || Random.id();

const sendMessage = {
Expand Down

0 comments on commit 6c08a6f

Please sign in to comment.