Skip to content

Conversation

ballinette
Copy link

What does this PR do?

The notificationCallback which is called on a Document notification alter the input parameter while it is called.
Consequently, if it is called more than 1 time (especially if we subscribed 2 times to the same filter), the first call will modifiy this parameter, and the second call will crash.

This PR fix that.

How should this be manually tested?

@codecov-io
Copy link

Codecov Report

Merging #334 into 5-dev will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##            5-dev     #334      +/-   ##
==========================================
+ Coverage   98.34%   98.34%   +<.01%     
==========================================
  Files          17       17              
  Lines        2119     2120       +1     
==========================================
+ Hits         2084     2085       +1     
  Misses         35       35
Impacted Files Coverage Δ
src/Room.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d9b614...67165e4. Read the comment docs.

@etrousset etrousset merged commit 753e953 into 5-dev Nov 2, 2018
@etrousset etrousset deleted the multi-notification branch November 2, 2018 09:10
@benoitvidis benoitvidis mentioned this pull request Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants