QuickBlox / quickblox-ios-sdk

QuickBlox iOS SDK for messaging and video calling
https://quickblox.com/developers/IOS
MIT License
397 stars 358 forks source link

[BUG] lastMsgText remains even if message is deleted #1297

Closed maughray closed 1 year ago

maughray commented 2 years ago

Bug description If all messages from a dialog are removed (even for all users), lastMsgText property of Dialog model contains last message anyway, even if it does not exist anymore. In QuickBlox admin panel is the same situation - dialog contains "Last message", but there are no messages in that dialog.

Steps to reproduce the behavior

  1. Create new private dialog with any user
  2. Send a message to that user
  3. Remove that message for all users

Expected result lastMsgText property of Dialog model is null Actual result lastMsgText property of Dialog model contains last message that does not even exist.

ghost commented 2 years ago

@maughray Hello,

This is Nikolay from QuickBlox support.

The issue is being investigated.

Please let me know if the issue is reproduced on the latest version of the QuickBlox iOS SDK (2.17.10): https://github.com/QuickBlox/quickblox-ios-sdk/releases/tag/2.17.10

Also, please provide me with the following information, just in case:

maughray commented 2 years ago

@maughray Hello,

This is Nikolay from QuickBlox support.

The issue is being investigated.

Please let me know if the issue is reproduced on the latest version of the QuickBlox iOS SDK (2.17.10): https://github.com/QuickBlox/quickblox-ios-sdk/releases/tag/2.17.10

Also, please provide me with the following information, just in case:

  • Versions of the iOS platform where the issue is reproduced (e.g. iOS 13).
  • iPhone models (e.g. iPhone 12 Pro).

This is a server-side issue. I don't think that iOS version or iPhone models matter.