Files
zulip/static/js
sahil839 238ba1c36f drafts: Save stream_id along with stream names for drafts.
This commit changes snapshot_message to store stream_id for
drafts along with stream names. The stream_id field is
undefined if draft is for empty or invalid stream name.

After this change:
  - If draft has a valid stream_id stored and it maps to
    a stream, then we display the stream name from the
    obtained stream object.

  - If draft.stream_id is undefined or doesn't map to a stream,
    then we display the name stored in draft.stream, which can
    be invalid (no stream of this name existed ever), can be
    empty and can also be name of a deactivated stream.

This change helps us to show correct stream-name for drafts
in case of renaming a stream.

Fixes #15155.
2021-09-08 15:18:10 -07:00
..
2021-04-26 09:27:49 -07:00
2021-07-05 17:04:06 -07:00
2021-05-28 15:44:49 -07:00
2021-06-22 09:09:36 -07:00
2021-06-24 16:19:22 -07:00
2021-05-18 17:33:51 -07:00