mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Add explicit message field for locally_echoed.
We now set locally_echoed to true for messages that are locally echoed, and we change some of our code to look for this flag.
This commit is contained in:
@@ -96,9 +96,11 @@ exports.initialize = function initialize() {
|
||||
// Additionally, don't advance the pointer server-side
|
||||
// if the selected message is local-only
|
||||
if (event.msg_list === home_msg_list && page_params.narrow_stream === undefined) {
|
||||
if (event.id > pointer.furthest_read &&
|
||||
home_msg_list.get(event.id).local_id === undefined) {
|
||||
pointer.furthest_read = event.id;
|
||||
if (event.id > pointer.furthest_read) {
|
||||
var msg = home_msg_list.get(event.id);
|
||||
if (!msg.locally_echoed) {
|
||||
pointer.furthest_read = event.id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user