Skip to content

Commit

Permalink
v 5.0.71-rc.4 in PRE
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Oct 11, 2023
1 parent 7a1f6ec commit 3e44bc7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chat21/chat21-web-widget",
"author": "Tiledesk SRL",
"version": "5.0.71-rc.3",
"version": "5.0.71-rc.4",
"license": "MIT",
"homepage": "https://www.tiledesk.com",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
const that = this;
const subChangedConversation = this.conversationsHandlerService.conversationChanged.subscribe((conversation) => {
// that.ngZone.run(() => {
if (conversation) {
if (conversation) {
this.onImageLoaded(conversation)
this.onConversationLoaded(conversation)

if(conversation.recipient === this.g.senderId && isUserBanned(conversation)){
that.disposeWidget();
return;
}

if(conversation.is_new && conversation.sender !== this.g.senderId && !isInfo(conversation)){
that.manageTabNotification();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export class FirebaseConversationsHandler extends ConversationsHandlerService {
private changed(childSnapshot: any) {
const oldConversation = this.conversations[searchIndexInArrayForUid(this.conversations, childSnapshot.key)]
//skip info message updates
if(messageType(MESSAGE_TYPE_INFO, oldConversation) ){
if(messageType(MESSAGE_TYPE_INFO, childSnapshot.val()) ){
return;
}
if (this.conversationGenerate(childSnapshot)) {
Expand Down

0 comments on commit 3e44bc7

Please sign in to comment.