nextcloud / nextcloud/spreed

Line breaks not working on Safari and macOS (Sequoia latest version) when composing a message

Open
#14,978 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: frontend 🖌️ upstream
Dominant language
PHP
Stars
2.2k
Forks
587
Avg merge
18h 27m
Merged PRs (30d)
333

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce:

  • Type: a[Shift+Enter]b[Shift+Enter]c
  • It will visually appear as:
    a
    b
    c
    
  • However, when the text is sent, it appears as:
    ab
    c
    
  • It incorrectly sends "ab" (no line break) followed by "c".

Another issue when breaking lines in the middle of a text:

  • Type: abcde
  • Place the mouse cursor in the middle of the word:
    abc|de
    
  • Press Shift+Enter to insert a line break.
  • It will visually appear in the input as:
    abc
    de
    
  • But when sent, it will be transmitted as abcde, without the line break.

Problem when writing code blocks:

  • Type: ```[Shift+Enter]a[Shift+Enter]b[Shift+Enter]c

  • On screen it will look like:

    '```
    a
    b
    c
    
    
  • But after sending, it appears incorrectly as:

    b
    c
    

Expected behavior:

  • For normal text:

    a
    b
    c
    
  • For text with a line break in the middle:

    abc
    de
    
  • For code blocks:

    a
    b
    c
    

Talk app

**Talk app version: 20.1.6 (see apps administration page: /index.php/settings/apps)

**Custom Signaling server configured: NO yes/no and version (see Talk administration settings: /index.php/settings/admin/talk#signaling_server)

**Custom TURN server configured: YES yes/no (see Talk administration settings: /index.php/settings/admin/talk#turn_server)

**Custom STUN server configured: YES yes/no (see Talk administration settings: /index.php/settings/admin/talk#stun_server)

Browser

**Microphone available: YES

**Camera available: YES yes/no

**Operating system: Mac Windows/Ubuntu/Mac/...

**Browser name: Safari Firefox/Chrome/Safari/...

**Browser version: 18 124/125/...

**Operating systemMacOS: Ubuntu/RedHat/...

**Web server: Apache Apache/Nginx

**Database: MySQL MySQL/Maria/SQLite/PostgreSQL

**PHP version: 8.3

**Nextcloud Version: 30.0.9 (see administration page)

List of activated apps:

  - activity: 3.0.0
  - calendar: 5.0.10
  - calendar_resource_management: 0.9.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.3
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - deck: 1.14.4
  - federatedfilesharing: 1.20.0
  - files: 2.2.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - provisioning_api: 1.20.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - snappymail: 2.38.2
  - spreed: 20.1.6
  - systemtags: 1.20.0
  - tasks: 0.16.1
  - theming: 2.6.0
  - theming_customcss: 1.17.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_external: 3.4.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev

Nextcloud configuration:

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "log_type": "file",
        "logfile": "\/var\/log\/groupware\/groupware_s4.log",
        "loglevel": 4,
        "logdateformat": "F d, Y H:i:s",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "default_language": "pt",
        "default_locale": "pt_BR",
        "dbtype": "mysql",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "allow_local_remote_servers": true,
        "lost_password_link": "disabled",
        "simpleSignUpLink.shown": false,
        "updater.release.channel": "git",
        "upgrade.disable-web": true,
        "updatechecker": false,
        "has_internet_connection": false,
        "trashbin_retention_obligation": "auto,10",
        "knowledgebaseenabled": false,
        "profile.enabled": false,
        "allow_user_to_change_display_name": false,
        "auth.bruteforce.protection.enabled": false,
        "activity_expire_days": 30,
        "app.mail.verify-tls-peer": false,
        "auth.webauthn.enabled": false,
        "overwriteprotocol": "https",
        "appstoreenabled": false,
        "user_backends": [
            {
                "class": "\\OCA\\UserExternal\\IMAP",
                "arguments": [
                    "127.0.0.1",
                    143,
                    null,
                    null,
                    false,
                    false
                ]
            }
        ],
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": "0",
            "password": "***REMOVED SENSITIVE VALUE***",
            "dbindex": 0,
            "timeout": 1.5,
            "read_timeout": 1.5
        },
        "memcached_server": [
            "localhost",
            "\/tmp\/memcached.sock"
        ],
        "theme": "",
        "trusted_domains": [
            "localhost"
        ],
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": true,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false,
                "verify_peer_name": false
            }
        },
        "version": "30.0.9.2",
        "maintenance": false,
        "session_lifetime": "86400",
        "remember_login_cookie_lifetime": "86400"
    }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Safari 18 on macOS Sequoia using the Talk message composer, then trace how Shift+Enter input is serialized when sent. Done means line breaks are preserved for normal text, breaks inserted in the middle of text, and code blocks, with regression coverage for these cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.