microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.6k stars 1.54k forks source link

New message is announced when a reorder of messages happens #4397

Open elopezanaya opened 2 years ago

elopezanaya commented 2 years ago

Is it an issue related to Adaptive Cards?

Do you have any screenshots?

image

What version of Web Chat are you using?

I am not using latest

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Dynamics 365 Omnichannel

Which browsers and platforms do the issue happened?

Browser: Edge (latest), Browser: Chrome (latest), Browser: Safari (latest), Platform: Windows, Platform: macOS

Which area does this issue affect?

Notification

Is this an accessibility issue?

Please describe the bug

Adaptive cards are being sorted according to the time stamp in the activity, if the scroll of the chat is in the middle of the chat while the reorder happens, it will announce as new message ,

this is a problem when one of the adaptive cards contains a set of suggested actions, because once the ordering happens , the suggested actions dissapear.

this was reported by a customer by scrolling up and down multiple times.

Do you see any errors in console log?

No response

How to reproduce the issue?

1.- use a PVA bot which send at least 3 messages , one after other , the last message should contain a set of suggested actions 2.- start the chat, and wait for the suggested actions to show up 3.- scroll up and down 4.- once the suggested actions dissapear corroborate the order of the messages

this is not an easy bug to reproduce, since the re-order doesnt always happen,

What is the expected and actual behavior?

Expected:

to do not throw a new message notification under the scenario described

Actual:

is throwing a new message notifiation

Adaptive Card JSON

No response

Additional context

NA

compulim commented 2 years ago

Please give repro in the format of transcript, or HTTP traffic.

elopezanaya commented 2 years ago

evidence_2.txt evidence2.zip

elopezanaya commented 2 years ago

here you can find the HAR files, the transcript and the screen shot of how it looks the chat after reorder the messages,

evidence5_12am.zip ChatTranscripts (33).zip

image
compulim commented 2 years ago

Per our offline discussion:

image