mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
message: Differentiate between new local messages and server messages.
This commit is contained in:
@@ -147,7 +147,10 @@ function process_result(data: MessageFetchResponse, opts: MessageFetchOptions):
|
||||
const raw_messages = data.messages;
|
||||
|
||||
const messages = raw_messages.map((raw_message) =>
|
||||
message_helper.process_new_message(raw_message),
|
||||
message_helper.process_new_message({
|
||||
type: "server_message",
|
||||
raw_message,
|
||||
}),
|
||||
);
|
||||
const has_found_oldest = opts.msg_list?.data.fetch_status.has_found_oldest() ?? false;
|
||||
const has_found_newest = opts.msg_list?.data.fetch_status.has_found_newest() ?? false;
|
||||
|
||||
Reference in New Issue
Block a user