Skip to content

Fix unread chat messages badge on the CallWithChatComposite being cleared when the call goes on hold#3332

Merged
JamesBurnside merged 5 commits intomainfrom
jaburnsi/maintain-unread-messages-when-on-hold
Jul 17, 2023
Merged

Fix unread chat messages badge on the CallWithChatComposite being cleared when the call goes on hold#3332
JamesBurnside merged 5 commits intomainfrom
jaburnsi/maintain-unread-messages-when-on-hold

Conversation

@JamesBurnside
Copy link
Copy Markdown
Member

What

  • Move unread messages tracking in callwithchatcomposite to the composite level instead of component level to ensure state is not lost when the button is unmounted.
  • Move the tracking logic into a hook for better separation

Why

  • Unread message count was being lost when the call went on hold

How Tested

Verified locally

image

image

image

…te level instead of component level to ensure state is not lost when the button is unmounted. Move the tracking logic into a hook for better separation
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 12, 2023

CallWithChat bundle size is increased❗.

  • Current size: 10662730
  • Base size: 10662428
  • Diff size: 302

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 12, 2023

Calling bundle size is increased❗.

  • Current size: 10020259
  • Base size: 10020037
  • Diff size: 222

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 12, 2023

Chat bundle size is increased❗.

  • Current size: 2249617
  • Base size: 2249616
  • Diff size: 1

* Helper function to determine if the message in the event is a valid one from a user.
* Display name is used since system messages will not have one.
*/
const validNewChatMessage = (message): boolean =>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Would this break with CTE users that have unnamed participant? (Due to cte bug and no graph integration with calling sdk yet).
cc @PorterNan

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great spot! I won't change in this PR as this function was just moved but I think you're right!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JamesBurnside JamesBurnside enabled auto-merge (squash) July 17, 2023 23:22
@github-actions
Copy link
Copy Markdown
Contributor

@JamesBurnside JamesBurnside merged commit 8df2a2d into main Jul 17, 2023
@JamesBurnside JamesBurnside deleted the jaburnsi/maintain-unread-messages-when-on-hold branch July 17, 2023 23:45
carocao-msft pushed a commit that referenced this pull request Jul 21, 2023
carocao-msft added a commit that referenced this pull request Jul 25, 2023
…rload with options bag (#3337)

* fix mobile but

* Change files

* Duplicate change files for beta release

* new join call api

* Change files

* Duplicate change files for beta release

* videoOption type

* [bugfix][a11y] Label side pane tab header currently active tab as aria-label (#3345)

* Add selected state to side pane tabheader tabs

* [Chat] introducing new type for future scalability (#3156)

* [Chat] Fix chat sample app conditional comment (#3314)

* Fix conditional comments for Chat sample app

* Change files

* Duplicate change files for beta release

* Add type check to stable sample chat app

* [Chat] cleaning up some unused property for FileMetaData (#3347)

* [BugFix] Update Captions banner to not obstruct verticalGallery controls on landscape mobile (#3305)

* move control bar to left when landscape mode

* refactor captions styles

* move styling changes to component

* remove CC demo code.. oops.

* Change files

* Duplicate change files for beta release

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Change control bar positioning logic

* fix legacy control view

* remove test.only

* change to move control bar when container is 16:9

* address comments

* fix stable build

* Update change/@azure-communication-react-20b35cc7-52f0-40ed-8502-191c5fe29c38.json

Co-authored-by: edwardlee-msft <edwardlee@microsoft.com>
Signed-off-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* update contol bar movement

* control bar movement

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* fix nits

---------

Signed-off-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: edwardlee-msft <edwardlee@microsoft.com>

* If video effect fails, none effect in picker is highlighted (#3334)

* If video effect fails, none effect in picker is highlighted

* Change files

* Duplicate change files for beta release

* Minor changes

* Fix unread chat messages badge on the CallWithChatComposite being cleared when the call goes on hold (#3332)

* Added capabilites feature to stateful client (#3340)

* Added capabilites feature to stateful client

* Change files

* Duplicate change files for beta

* update api undocumented comment

---------

Co-authored-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>

* [Chat] Fix mention popover position incorrect when insert mention in the middle of long text (#3348)

* Fix Mention Popover's position is too low when insert mention in the middle of a very long text

* Change files

* Duplicate change files for beta release

* [A11y bugfix] Fix video effects pane tab ordering on call screen (#3351)

* add focus zones

* Change files

* Duplicate change files for beta release

* fix nit

* Effects pane header misaligned (#3338)

* Effects pane header misaligned

* Change files

* Duplicate change files for beta release

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* Minor changes

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallWithChatComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Fix breaking change check by ensuring dependencies are installed for the base branch (#3356)

* Update pnpm version to 8.6.9 (#3357)

* Fix bug where captions keep scrolling to the bottom when new captions are received  (#3353)

* scrolling bug

* Change files

* Duplicate change files for beta release

* api

* file

* file

* lint

* update storybook

* update storybook

* update

* update

---------

Signed-off-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>
Co-authored-by: edwardlee-msft <edwardlee@microsoft.com>
Co-authored-by: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com>
Co-authored-by: Leah Xia <107075081+Leah-Xia-Microsoft@users.noreply.github.com>
Co-authored-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: prabhjot-msft <97124699+prabhjot-msft@users.noreply.github.com>
Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com>
Co-authored-by: mgamis-msft <79475487+mgamis-msft@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants