消息不能正常解析换行

Open
#27 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
swift
Domain
mobile

Research direction

Start by reproducing the issue on iPhone in a group or channel with a multi-line message, then compare the result with a one-to-one chat and with message editing. Trace the message handling path responsible for group and channel text, and verify that single and multiple line breaks remain line breaks after sending and editing.

Written by the indexing model from the issue text.

Description

bug
Checklist
  • I am reporting an issue in existing functionality that does not work as intended
  • I've searched for existing GitHub issues
Description

在发送多行消息时,换行被转换为空格

Expected Behavior

正常展示换行

Actual Behavior

换行被转为空格,多个换行亦被转换为多个空格

Steps to Reproduce
  1. 在群组/频道中,输入多行文本
  2. 发送后,换行被转为空格
Screenshots and Videos

https://github.com/user-attachments/assets/01847580-8037-4a29-a285-180ba1011a45

Environment

Device: iPhone 17

iOS version: 27.0

App version: TF Version

Additional hint

只在群聊/频道内 100%复现,单聊未能复现
问题,edit 时同时有效

Dominant language
Swift
Stars
151
Forks
22
Avg merge
1d 10h
Merged PRs (30d)
3

Getting set up

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.

More from NextAlone/Nagram-iOS

All issues in NextAlone/Nagram-iOS

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.