Rocket.Chat.Android icon indicating copy to clipboard operation
Rocket.Chat.Android copied to clipboard

Room not being deleted in realtime

Open Shailesh351 opened this issue 6 years ago • 0 comments

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

  1. Keep chatrooms screen open in mobile
  2. Leave channel from web
  3. 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

Shailesh351 avatar Sep 11 '19 17:09 Shailesh351