لم يتم حفظ المسودة عند إنشاء رسالة خاصة جديدة

When creating a message and saving it as a draft, the message does not appear in Drafts

Steps to reproduce:

  • Open Messages
  • Press :email: New Message
  • Type something
  • Press the little :arrow_down_small: icon as shown in the video below.
  • Start a new message
  • A notification then should pop up saying:
    Are you sure you want to delete the message?
  • Press No, save draft
  • Go to the drafts section. The draft is not there.

Although the fact, that you want to create a new message when you are already in the process of creating a new one, seems a bit weird, shouldn’t the draft feature work just fine?


إعجاب واحد (1)

Can you repro this @tshenry?

4 إعجابات

I can, but I think it may be expected. From what I can tell a draft will not save unless it meets the criteria set in the min post length site setting (default 20 characters).

IMO if a draft is < 20 characters, it’s probably not hyper-critical if a user has to start from scratch. I guess the only thing we could improve here is to not give the user the impression that a draft will be saved.

8 إعجابات

Tried to create a new topic - there were only 5 characters - and it got saved as a draft though.

إعجابَين (2)

Indeed. Thanks for following up. That pushed me to dig deeper. It looks like it might have to do with timing.

  • If you only enter “Hello” into the title line of the PM and stop, a draft will be saved :white_check_mark:
  • If you only enter “Hello” into the textarea of the PM and stop, a draft will be saved :white_check_mark:

  • If you enter “Hello” into the title line of the PM and then immediately enter “Hello” into the textarea, no draft is saved :x:
  • If you enter “Hello” into the textarea of the PM and then immediately enter “Hello” into the title line, no draft is saved :x:

When composing a topic, all of the above scenarios appear to work.

5 إعجابات

Tried both of those and yes, you are right. Entering another phrase though which is 19 characters, the pop up message still appears and when you press save draft, the draft is not saved. As you said, the notification should be improved a litle, in order for members not to understand that their draft will be saved. Perhaps, the message shouldn’t even pop up, if the characters are <20. Thanks for looking into it! :slightly_smiling_face:

إعجابَين (2)

Looks like bugs @sam?

إعجاب واحد (1)

Yeah a minor one, it is not like you can lose anything meaningful

Will add to my list

5 إعجابات

يجب إصلاح ذلك عبر:

الوصف:

إليك كيف تعمل عملية حفظ المسودة حاليًا:

  • إذا كان العنوان موجودًا فقط (بدون رد)، يتم حفظ المسودة.
  • إذا كان الرد موجودًا فقط (بدون عنوان)، يتم حفظ المسودة.
  • إذا كان كل من العنوان والرد موجودين، وكان طول الرد أقل من min_post_length وطول العنوان أقل من min_topic_title_length، يتم حفظ المسودة.
  • إذا كان كل من العنوان والرد موجودين، وكان طول الرد أقل من min_post_length، فلا يتم حفظ المسودة (إذن لماذا تم حفظ الحالة السابقة؟ :thinking:)

شروط حفظ المسودة الحالية معقدة الفهم وتسبب ارتباكًا.

يقوم هذا الالتزام بتحديث العملية لحفظ المسودة إذا كان العنوان أو الرد (أو كلاهما) موجودًا، وإذا حقق أحدهما على الأقل معايير الطول المطلوبة.

شكرًا لتبليغك عن هذه المشكلة @Thomas_G، ولبحثك الإضافي @tshenry. :+1:

6 إعجابات