Skip to content

Commit

Permalink
Merge pull request #2357 from intersective/prerelease
Browse files Browse the repository at this point in the history
Release 2.4.2.3
  • Loading branch information
shawnm0705 authored Jan 16, 2025
2 parents 44142a1 + 5365dd4 commit d01345b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 13 additions & 11 deletions projects/v3/src/app/pages/chat/chat-room/chat-room.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
<p class="seen-text caption gray-2">{{ utils.getUserRolesForUI(message.senderRole) }}</p>
</ng-container>

<ng-container *ngIf="message.message || !message.fileObject;">
<ng-container *ngIf="message.message || !message.fileObject">
<!-- Quill read only view/ use to render html content -->
<quill-view id="message-content"
[content]="message.message"
[strict]="true"
<quill-view-html id="message-content"
[content]="message?.message"
[sanitize]="true"
tabindex="0"
></quill-view>
></quill-view-html>
</ng-container>

<ng-container *ngIf="message.fileObject">
Expand Down Expand Up @@ -139,12 +139,12 @@
</ng-container>
</ion-content>

<ion-footer *ngIf="!chatChannel.readonly && !chatChannel.isAnnouncement" class="footer" [ngClass]="{'ion-footer-absolute': !isMobile, 'attach-preview': (selectedAttachments.length > 0 && !isMobile)}">
<div *ngIf="whoIsTyping" style="position: absolute;
z-index: 9999;
top: -2em;
margin: 0 1em;
width: 100%;">
<ion-footer *ngIf="!chatChannel.readonly && !chatChannel.isAnnouncement" class="footer"
[ngClass]="{'ion-footer-absolute': !isMobile, 'attach-preview': (selectedAttachments.length > 0 && !isMobile)}"
>
<div *ngIf="whoIsTyping"
style="position: absolute; z-index: 9999; top: -2em; margin: 0 1em; width: 100%;"
>
<ion-label class="received-messages no-avatar" color="medium">
<p class="message-typing">
<i>{{ whoIsTyping }}</i>
Expand All @@ -160,6 +160,8 @@
customToolbarPosition="top"
[modules]="editorModules"
[classes]="isMobile ? 'editor-class' : 'editor-class desktop'"
[preserveWhitespace]="false"
[trimOnValidation]="true"
[required]="true"
class="message-text-editor"
placeholder="Enter your message"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { ChatInfoComponent } from '../chat-info/chat-info.component';
import { AttachmentPopoverComponent } from '../attachment-popover/attachment-popover.component';
import { Subject, timer } from 'rxjs';
import { debounceTime, switchMap, takeUntil, tap } from 'rxjs/operators';
import { debounce } from 'lodash';
import { DomSanitizer } from '@angular/platform-browser';
import { QuillModules } from 'ngx-quill';


enum ScrollPosition {
Expand Down Expand Up @@ -73,7 +73,7 @@ export class ChatRoomComponent implements OnInit, OnDestroy, AfterViewInit {

// quill editor modules
private isMatcherApplied = false;
editorModules = {
editorModules: QuillModules = {
magicUrl: {
globalRegularExpression: /(https?:\/\/|www\.)[\S]+/g,
urlRegularExpression: /(https?:\/\/[\S]+)|(www.[\S]+)/g,
Expand Down

0 comments on commit d01345b

Please sign in to comment.