Deltachat-android: Problem in the group name

Created on 14 Aug 2020  路  6Comments  路  Source: deltachat/deltachat-android

  • Operating System (Linux/Mac/Windows/iOS/Android): Android 10
  • Delta Chat Version: 1.12.2
  • Expected behavior: When I paste a multiline phrase into the group name, it allows me to set a profile picture and receive any name changes via system messages and not normal messages.
  • Actual behavior: You cannot set the group image and receive system messages as normal messages.
  • Steps to reproduce the problem: Copy any multi-line message and paste it into the group name.
  • Screenshots:
    Screenshot_20200814_204116_chat delta beta

  • Logs:

bug

Most helpful comment

Actually, I would expect that multiline group names are just rejected or all newlines are removed.

All 6 comments

@AndreazLattmann Thank you for your report. It took a while for me to understand what you have meant, but I can confirm your finding, that is a tricky one! Actually the problem does occur when the following steps are performed:

-- Create a group with at least two members (you and another contact). The group must be named with a multi-line phrase, e.g. by copying a short text including line breaks into the group name field.
-- Send the introduction message to the group member(s).
-- Rename the group.

It is not necessary to apply a picture to the group at all to reproduce the issue.

@gerryfrancis it was a bit difficult to explain this error.馃槄

@AndreazLattmann Never mind, it is a great catch anyway! :+1:

Actually, I would expect that multiline group names are just rejected or all newlines are removed.

@Hocuri You are right, nevertheless it would be good to know why renaming the group is causing that behavior (sending a normal message instead of a system message). (I would like to find out, but unfortunately I have no coding skills.)

Actually, I would expect that multiline group names are just rejected or all newlines are removed.

It would make sense to sanitize the strings in the core.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

r10s picture r10s  路  4Comments

luisfsr picture luisfsr  路  5Comments

adbenitez picture adbenitez  路  4Comments

travisfw picture travisfw  路  5Comments

r10s picture r10s  路  4Comments