ls1intum / artemis-ios

Native iOS application for Artemis.
https://apps.apple.com/de/app/artemis-learning/id6478965616
MIT License
6 stars 1 forks source link

Textfield Not Clearing After Sending Message #207

Open Abus00 opened 1 week ago

Abus00 commented 1 week ago

Bug Report: Textfield Not Clearing After Sending Message

Description: Occasionally, after writing a message in a thread and clicking "Send," the message is sent successfully, but the text remains in the textfield. This issue occurs sporadically and isn't consistently reproducible. It tends to happen when replying directly to a new message thread.

Steps to Reproduce:

  1. Open a new message thread.
  2. Write a reply and click "Send."
  3. Observe that the text sometimes remains in the textfield even after the message is sent.

Additional Information:

Environment:

Screenshot

JanaNF commented 5 days ago

This still occurs while testing the picture-feature in TestFlight, Artemis Version 1.5.0.

anian03 commented 3 days ago

Likely cause identified: SwiftData does not enforce @Attribute(.unique), so multiple versions of a drafted message are stored, and a random one is picked for the text field. Currently looking into fixing it