Skip to content

Multiline text with emoticon doesn't handle backspace correctly #7513

@haegelix

Description

@haegelix

Using a supported version?

  • I have searched searched open and closed issues for duplicates.
  • I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package.

Overall summary

When having a single emoticon (with no text) in the last line of a multiline message hitting backspace will delete the first character of the message.

Steps to reproduce

  1. Go to any chat.
  2. Write some text, add a linebreak, add an emoticon (example below).
  3. Put the cursor in the line with the emoticon.
  4. Press backspace.
  5. Watch the magic happen.

Text example:

Test 1
Test 2
😀

Expected result

The linebreak at the cursor's position should be deleted.

Actual result

The first character of the message is being deleted.

Screenshots

See this gif:

Image

Signal version

7.72.1

Operating system

Windows 11

Version of Signal on your phone

No response

Link to debug log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions