message_cache: Rename update_to_dict_cache to update_message_cache.

This better describes what it does.
This commit is contained in:
Alex Vandiver
2023-10-12 16:24:19 +00:00
committed by Tim Abbott
parent 737a751f5c
commit b3e8878252
3 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ from zerver.lib.message import (
should_change_visibility_policy,
visibility_policy_for_participation,
)
from zerver.lib.message_cache import update_to_dict_cache
from zerver.lib.message_cache import update_message_cache
from zerver.lib.stream_subscription import subscriber_ids_with_stream_history_access
from zerver.lib.streams import access_stream_by_id
from zerver.models import Message, Reaction, Recipient, Stream, UserMessage, UserProfile
@@ -41,7 +41,7 @@ def notify_reaction_update(
}
# Update the cached message since new reaction is added.
update_to_dict_cache([message])
update_message_cache([message])
# Recipients for message update events, including reactions, are
# everyone who got the original message, plus subscribers of