Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

28 changes: 0 additions & 28 deletions apps/meteor/app/livechat/client/views/app/livechatReadOnly.html

This file was deleted.

129 changes: 0 additions & 129 deletions apps/meteor/app/livechat/client/views/app/livechatReadOnly.js

This file was deleted.

2 changes: 0 additions & 2 deletions apps/meteor/app/livechat/client/views/regular.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './app/livechatReadOnly';
import './app/livechatNotSubscribed.html';
import './app/tabbar/contactChatHistory';
import './app/tabbar/contactChatHistoryItem';
import './app/tabbar/contactChatHistoryMessages';
2 changes: 1 addition & 1 deletion apps/meteor/app/models/client/models/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Users = {
* @param {string} scope the value for the scope (room id)
* @param {any} options
*/
findUsersInRoles(roles, scope, options) {
findUsersInRoles(roles, _scope, options) {
roles = [].concat(roles);

const query = {
Expand Down
150 changes: 68 additions & 82 deletions apps/meteor/app/ui-message/client/messageBox/messageBox.html
Original file line number Diff line number Diff line change
@@ -1,100 +1,86 @@
<template name="messageBox">
<div class="rc-message-box rc-new {{#if isEmbedded}}rc-message-box--embedded{{/if}}">
{{#unless isAnonymousOrMustJoinWithCode}}

{{> userActionIndicator rid=rid tmid=tmid}}
{{> userActionIndicator rid=rid tmid=tmid}}

{{#if isWritable}}
{{#if popupConfig}}
{{> messagePopupConfig popupConfig}}
{{> messagePopupSlashCommandPreview popupConfig}}
{{/if}}
{{#if popupConfig}}
{{> messagePopupConfig popupConfig}}
{{> messagePopupSlashCommandPreview popupConfig}}
{{/if}}

{{#if replyMessageData}}
<div class="reply-preview__wrap message-popup">
{{#each reply in replyMessageData}}
{{> messageBoxReplyPreview input=input replyMessageData=reply}}
{{/each}}
</div>
{{/if}}
{{#if replyMessageData}}
<div class="reply-preview__wrap message-popup">
{{#each reply in replyMessageData}}
{{> messageBoxReplyPreview input=input replyMessageData=reply}}
{{/each}}
</div>
{{/if}}

<label class="rc-message-box__container">
<label class="rc-message-box__container">
{{#unless isFederatedRoom}}
<span class="rc-message-box__icon emoji-picker-icon {{#unless isEmojiEnabled}}emoji-picker-icon--disabled{{/unless}} js-emoji-picker" aria-haspopup="true">
{{> icon block="rc-input__icon-svg" icon="emoji"}}
</span>
{{else}}
<div class="rc-message-box__federation_icon"></div>
{{/unless}}

<textarea aria-label="{{_ 'Message'}}" name="msg" maxlength="{{maxMessageLength}}" placeholder="{{_ 'Message'}}" rows="1" class="rc-message-box__textarea js-input-message"></textarea>
<div class="js-input-message-shadow"></div>
{{#if isSendIconVisible}}
<span class="rc-message-box__icon rc-message-box__send js-send" data-desktop>
{{> icon block="rc-input__icon-svg" icon="send"}}
</span>
{{else}}
{{# if customAction }}
{{> Template.dynamic template=customAction.template data=customAction.data }}
{{ else }}
{{#unless isFederatedRoom}}
<span class="rc-message-box__icon emoji-picker-icon {{#unless isEmojiEnabled}}emoji-picker-icon--disabled{{/unless}} js-emoji-picker" aria-haspopup="true">
{{> icon block="rc-input__icon-svg" icon="emoji"}}
</span>
{{else}}
<div class="rc-message-box__federation_icon"></div>
{{/unless}}

<textarea aria-label="{{_ 'Message'}}" name="msg" maxlength="{{maxMessageLength}}" placeholder="{{_ 'Message'}}" rows="1" class="rc-message-box__textarea js-input-message"></textarea>
<div class="js-input-message-shadow"></div>
{{#if isSendIconVisible}}
<span class="rc-message-box__icon rc-message-box__send js-send" data-desktop>
{{> icon block="rc-input__icon-svg" icon="send"}}
</span>
{{else}}
{{# if customAction }}
{{> Template.dynamic template=customAction.template data=customAction.data }}
{{ else }}
{{#unless isFederatedRoom}}
{{#if canSend}}
{{> messageBoxAudioMessage rid=rid tmid=tmid}}
<span class="rc-message-box__action-menu js-action-menu" data-desktop aria-haspopup="true" data-qa-id="menu-more-actions">
{{#if actions}}
<span class="rc-message-box__icon">
{{> icon block="rc-input__icon-svg" icon="plus"}}
</span>
{{/if}}
{{#if canSend}}
{{> messageBoxAudioMessage rid=rid tmid=tmid}}
<span class="rc-message-box__action-menu js-action-menu" data-desktop aria-haspopup="true" data-qa-id="menu-more-actions">
{{#if actions}}
<span class="rc-message-box__icon">
{{> icon block="rc-input__icon-svg" icon="plus"}}
</span>
{{else}}
<button class="js-join rc-button rc-button--primary rc-message-box__join-button">
{{_ "join"}}
</button>
{{/if}}
{{/unless}}
</span>
{{else}}
<button class="js-join rc-button rc-button--primary rc-message-box__join-button">
{{_ "join"}}
</button>
{{/if}}
{{/if}}
{{/unless}}
{{/if}}
{{/if}}

<span class="rc-message-box__action-label js-message-actions" data-small>
{{#each action in actions}}
<span class="js-message-action" data-id="{{action.id}}">
{{> icon block="rc-message-box__action" icon=action.icon }}
</span>
{{/each}}
<span class="rc-message-box__action-label js-message-actions" data-small>
{{#each action in actions}}
<span class="js-message-action" data-id="{{action.id}}">
{{> icon block="rc-message-box__action" icon=action.icon }}
</span>
{{/each}}
</span>

<span class="rc-message-box__send js-message-action js-send" disabled="{{isSendIconDisabled}}" data-small>
{{> icon block="rc-message-box__action" icon="send"}}
</span>
</label>
<span class="rc-message-box__send js-message-action js-send" disabled="{{isSendIconDisabled}}" data-small>
{{> icon block="rc-message-box__action" icon="send"}}
</span>
</label>

{{#if showFormattingTips}}
<div class="rc-message-box__toolbar-formatting">
{{#each formattingButton in formattingButtons}}
{{#if formattingButton.icon}}
<button class="rc-message-box__toolbar-formatting-item js-format" data-id="{{formattingButton.label}}" title="{{_ formattingButton.label}}">
{{> icon block="rc-message-box__toolbar-formatting-icon" icon=formattingButton.icon }}
</button>
{{else}}
<span class="rc-message-box__toolbar-formatting-item" title="{{_ formattingButton.label}}">
<a href="{{formattingButton.link}}" target="_blank" rel="noopener noreferrer" class="rc-message-box__toolbar-formatting-link">{{formattingButton.text}}</a>
</span>
{{/if}}
{{/each}}
</div>
{{/if}}
{{else}}
<div class="rc-message-box__cannot-send">
{{#if isBlockedOrBlocker}}
{{_ "room_is_blocked"}}
{{#if showFormattingTips}}
<div class="rc-message-box__toolbar-formatting">
{{#each formattingButton in formattingButtons}}
{{#if formattingButton.icon}}
<button class="rc-message-box__toolbar-formatting-item js-format" data-id="{{formattingButton.label}}" title="{{_ formattingButton.label}}">
{{> icon block="rc-message-box__toolbar-formatting-icon" icon=formattingButton.icon }}
</button>
{{else}}
{{> messageBoxReadOnly rid=rid isSubscribed=isSubscribed onHold=onHold }}
<span class="rc-message-box__toolbar-formatting-item" title="{{_ formattingButton.label}}">
<a href="{{formattingButton.link}}" target="_blank" rel="noopener noreferrer" class="rc-message-box__toolbar-formatting-link">{{formattingButton.text}}</a>
</span>
{{/if}}
</div>
{{/if}}
{{else}}
{{> messageBoxNotSubscribed rid=rid}}
{{/unless}}
{{/each}}
</div>
{{/if}}
</div>
</template>
2 changes: 0 additions & 2 deletions apps/meteor/app/ui-message/client/messageBox/messageBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import './messageBoxActions';
import './messageBoxReplyPreview.ts';
import './userActionIndicator.ts';
import './messageBoxAudioMessage.ts';
import './messageBoxNotSubscribed.ts';
import './messageBoxReadOnly.ts';
import './messageBox.html';

type MessageBoxTemplateInstance = Blaze.TemplateInstance<{
Expand Down

This file was deleted.

Loading