Commit Graph

11 Commits

Author SHA1 Message Date
Evy Kassirer
2cbf9e130e drafts: Store DM drafts with user ids instead of emails.
Fixes #34468.
2025-05-16 10:51:29 -07:00
Evy Kassirer
798f59a01b drafts: Remove noop setting of private_message_recipient in tests.
If we stub out `set_from_emails` as a noop, then setting the private
recipient is a noop and doesn't need to happen.
2025-05-08 09:36:36 -07:00
Harsh
c6dddfe580 drafts: Show "No DM recipients" when recipients aren't specified. 2025-05-01 16:38:09 -07:00
Harsh
57ce1371a8 drafts: Use specific text for DM conversation with self.
Adds "You" and "Drafts from conversations with yourself" as
labels in the drafts overlay for the DM conversation with
the current user.

Co-authored-by: Lauryn Menard <lauryn@zulip.com>
2025-04-28 20:50:51 -07:00
Lauryn Menard
64cb3769ce drafts-test: Fix test data for direct message drafts.
The draft values for private_message_recipient and reply_to should
be set to the same string of comma separated email addresses.
2025-04-28 20:50:51 -07:00
Aman Agrawal
cd439c0232 message_overlay: Fix restore tooltips detached with message content.
To avoid restore tooltip of message from being displayed outside
the overlay, we define a boundary, outside which the tooltip
cannot exist. Popper library is smart enough to render the tooltip
correctly by respecting the provided boundary and flipping the
tooltip placement if required.
2025-04-11 10:40:35 -07:00
Maneesh Shukla
3db2104fe9 drafts: Add a copy draft button.
This adds a button to the draft overlay that allows the user to copy
the draft to the clipboard.
2025-02-23 15:54:07 -08:00
Prakhar Pratyush
8a14018442 drafts: Show empty string as topic when realm_mandatory_topics=true.
Earlier, we were displaying `realm_empty_topic_display_name` as the
topic name when topic="".

This was not the expected behavior when `realm_mandatory_topics=true`.

This commit updates the logic to show empty string in such cases.
2025-02-12 09:37:51 -08:00
Prakhar Pratyush
e3ce4c5766 drafts_table: Show realm_empty_topic_display_name for topic="".
This commit adds support to display `realm_empty_topic_display_name`
value in the drafts table for topics having the actual value of
empty string.
2025-01-10 14:32:55 -08:00
aditya.chaudhary1558@gmail.com
08c8e40afa drafts: Remove feature for discarding drafts after 30 days.
This commit helps in removal of all the code and documentation
related to 30-day auto removal of draft that are saved.

Fixes #32176.
2024-12-17 11:54:10 -08:00
Anders Kaseorg
687f1b1651 tests: Rename the Node tests to *.cjs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-13 09:18:56 -08:00