mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
message_store: Fix bogus update_status_emoji_info type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
7a10d8329b
commit
4340f400b8
@@ -2,6 +2,7 @@ import * as blueslip from "./blueslip";
|
||||
import * as people from "./people";
|
||||
import type {RawReaction} from "./reactions";
|
||||
import type {Submessage, TopicLink} from "./types";
|
||||
import type {UserStatusEmojiInfo} from "./user_status";
|
||||
|
||||
const stored_messages = new Map();
|
||||
|
||||
@@ -254,7 +255,10 @@ export function update_stream_name(stream_id: number, new_name: string): void {
|
||||
}
|
||||
}
|
||||
|
||||
export function update_status_emoji_info(user_id: number, new_info: string): void {
|
||||
export function update_status_emoji_info(
|
||||
user_id: number,
|
||||
new_info: UserStatusEmojiInfo | undefined,
|
||||
): void {
|
||||
for (const msg of stored_messages.values()) {
|
||||
if (msg.sender_id && msg.sender_id === user_id) {
|
||||
msg.status_emoji_info = new_info;
|
||||
|
||||
Reference in New Issue
Block a user