mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
Replace line breaks with spaces in reply headers
This commit is contained in:
parent
bd2b30b51f
commit
532ccd1031
@ -179,7 +179,7 @@ public func mediaContentKind(_ media: Media, message: Message? = nil, strings: P
|
|||||||
public func stringForMediaKind(_ kind: MessageContentKind, strings: PresentationStrings) -> (String, Bool) {
|
public func stringForMediaKind(_ kind: MessageContentKind, strings: PresentationStrings) -> (String, Bool) {
|
||||||
switch kind {
|
switch kind {
|
||||||
case let .text(text):
|
case let .text(text):
|
||||||
return (text, false)
|
return (foldLineBreaks(text), false)
|
||||||
case .image:
|
case .image:
|
||||||
return (strings.Message_Photo, true)
|
return (strings.Message_Photo, true)
|
||||||
case .video:
|
case .video:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user