In D6224 we've introduced a bug that causes new messages to not always be delivered to some users. The issue is described in https://linear.app/comm/issue/ENG-2889/threads-arent-marked-as-unread-on-web.
This solution modifies the logic so that we only skip the part responsible for notifications when device list is empty.