commit: 42c747a342cd7d435dcbe411276ac4999ff92395
parent fdfb8810c1d8ab64969c38aa1a6bce1daf013249
Author: lain <lain@soykaf.club>
Date: Thu, 3 Dec 2020 14:30:25 +0000
Merge branch 'fix/own-chat-messages-disappearing' into 'develop'
fix #1021: own chat messages disappearing
Closes #1021
See merge request pleroma/pleroma-fe!1304
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
@@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fixed custom emoji not working in profile field names
- Fixed pinned statuses not appearing in user profiles
- Fixed some elements not being keyboard navigation friendly
+- Fixed your latest chat messages disappearing when closing chat view and opening it again during the same session
### Changed
- Errors when fetching are now shown with popup errors instead of "Error fetching updates" in panel headers
diff --git a/src/services/chat_service/chat_service.js b/src/services/chat_service/chat_service.js
@@ -21,7 +21,7 @@ const clear = (storage) => {
failedMessageIds.push(message.id)
} else {
delete storage.idIndex[message.id]
- delete storage.idempotencyKeyIndex[message.id]
+ delete storage.idempotencyKeyIndex[message.idempotency_key]
}
}