Skip to content

Handle moved messages (update_message events, 2/2) #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gnprice opened this issue Jun 2, 2023 · 1 comment
Closed

Handle moved messages (update_message events, 2/2) #150

gnprice opened this issue Jun 2, 2023 · 1 comment
Assignees
Labels
a-api Implementing specific parts of the Zulip server API a-model Implementing our data model (PerAccountStore, etc.)

Comments

@gnprice
Copy link
Member

gnprice commented Jun 2, 2023

https://zulip.com/api/get-events#update_message

This issue is for the case where the messages were moved to a different stream or topic. (The case where a message's content changed is #118.)

In particular these should be handled in the MessageListView view-model, so that the message disappears from the view if it no longer belongs in that particular narrow, or appears if it newly does belong.

@gnprice gnprice added a-api Implementing specific parts of the Zulip server API a-model Implementing our data model (PerAccountStore, etc.) labels Jun 2, 2023
@gnprice gnprice added this to the Alpha milestone Jun 2, 2023
@gnprice gnprice modified the milestones: Alpha, Launch Sep 22, 2023
@gnprice gnprice modified the milestones: Launch, B2: Summer 2024 May 9, 2024
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 21, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 21, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 21, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 22, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 25, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 25, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 25, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 25, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 25, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 26, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 26, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 26, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 26, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 27, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 27, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 27, 2024
When a channel (a.k.a stream) or a topic gets updated on a message, we
get a UpdateMessageEvent from the server. The same happens when the
message's content is updated.

This updates the edit state to show the "edited" or "moved" marker
properly on the messages affected, and leave other move related states
(like streamId) untouched until we get to zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 26, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 26, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 26, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 26, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
@gnprice
Copy link
Member Author

gnprice commented Jul 27, 2024

This will be mostly covered by #787. But after that lands, we should follow up with a quick scan to identify anything else that needs updating on message moves — there are several new data structures in the store that we've merged in recent weeks.

PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 27, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 29, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 29, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 29, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 29, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 29, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 29, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 29, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 30, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 30, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 30, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 30, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Jul 31, 2024
We only implement navigation change for the TopicNarrow. For StreamNarrow,
propagateMode is practically unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Aug 2, 2024
Navigation change is only intended for TopicNarrow. For StreamNarrow,
propagateMode is unused.

See also:

  zulip/zulip-mobile#5251

Fixes: zulip#150

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Aug 2, 2024
Navigation change is only intended for TopicNarrow. For StreamNarrow,
propagateMode is unused.

See also:

- zulip/zulip-mobile#5251
- zulip#787 (comment)

Fixes: zulip#150

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Aug 2, 2024
Navigation change is only intended for TopicNarrow. For StreamNarrow,
propagateMode is unused.

See also:

- zulip/zulip-mobile#5251
- zulip#787 (comment)

Fixes: zulip#150

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Aug 2, 2024
Navigation change is only intended for TopicNarrow. For StreamNarrow,
propagateMode is unused.

See also:

- zulip/zulip-mobile#5251
- zulip#787 (comment)

Fixes: zulip#150

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to gnprice/zulip-flutter that referenced this issue Aug 9, 2024
Navigation change is only intended for TopicNarrow. For StreamNarrow,
propagateMode is unused.

See also:

- zulip/zulip-mobile#5251
- zulip#787 (comment)

Fixes: zulip#150

Signed-off-by: Zixuan James Li <[email protected]>
@gnprice gnprice closed this as completed in e9b5f6f Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-api Implementing specific parts of the Zulip server API a-model Implementing our data model (PerAccountStore, etc.)
Projects
Status: Done
Development

No branches or pull requests

2 participants