Room not being deleted in realtime
Describe the bug
When the room is deleted(user leaves the room) it is not being deleted from chatrooms screen while app is open.
User needs to restart the app for it
To Reproduce
- Keep chatrooms screen open in mobile
- Leave channel from web
- Above bug occurs
Expected behavior
Rooms should be deleted in real time. Earlier it was working as expected.
Logs
when room is removed, in the subscription server sends update with type updated instead of removed. That may be the reason of issues
[StreamMessage(type=chat.rocket.core.internal.realtime.socket.model.Type$Updated@5ea5fa7, data=Room(id=Zirt5gb2bsBBv9KNZ, type=p, user=SimpleUser(id=kMWuK9HCXi9gFfamT, username=Shailesh351, name=null), name=testttiiing1, fullName=testttiiing1, readonly=false, updatedAt=1567402532496, topic=null, description=null, announcement=null, lastMessage=Message(id=RNQ9DXzAhqdEz5mPN, roomId=Zirt5gb2bsBBv9KNZ, message=hi, timestamp=1567402492243, sender=SimpleUser(id=kMWuK9HCXi9gFfamT, username=Shailesh351, name=Shailesh351), updatedAt=1567402492280, editedAt=null, editedBy=null, senderAlias=null, avatar=null, type=null, groupable=false, parseUrls=false, urls=null, mentions=[], channels=[], attachments=null, pinned=false, starred=null, reactions=null, role=null, synced=true, unread=true), broadcast=false, muted=null))]
Devices and Versions
Your Rocket.Chat.Android version: 3.5.1 Your Rocket.Chat Server version: 2.0.0-r .3