-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
message: Fix malformed reaction data.
After a message was reset in our caches cache via message editing or adding/removing a reaction, we were sending corrupt data to the cache because build_message_dict (and thus build_dict_from_raw_db_row) was improperly being called before sewing in the reaction data. As a result, we were sending raw database data in the reaction dictionaries, rather than the reformatted version expected by the API. Bug introduced in 2a4c62a. Fixing this correctly required moving the rendering_realm_id logic one step higher in the call chain, which is a useful refactoring anyway (since we're no longer passing a `Message` object down)
- Loading branch information
Showing
1 changed file
with
49 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters