Skip to content

[Sprint/FunnyFrog](bug): Fixed bug that was stopping blocking from working #488

Ben requested to merge benhayward.ben/engine:messenger-blocking-fix-488 into master

Closes #488 (closed)

if (is_array($response['participants']) && false) {

meant that checking whether a user was blocked was never being attempted by the server - regardless the old code behind it no longer functioned, so I refactored it using

                    $blocked = Core\Security\ACL\Block::_()->isBlocked($participant['guid']);//check whether user is blocked    

By my tests, this allows users to block bidirectionally (e.g. bob can block alice, then alice can block pop), and is respected when the window is reloaded.

Merge request reports