Replace line breaks with spaces in reply headers

This commit is contained in:
Ilya Laktyushin 2020-05-11 05:00:04 +04:00
parent bd2b30b51f
commit 532ccd1031

View File

@ -179,7 +179,7 @@ public func mediaContentKind(_ media: Media, message: Message? = nil, strings: P
public func stringForMediaKind(_ kind: MessageContentKind, strings: PresentationStrings) -> (String, Bool) {
switch kind {
case let .text(text):
return (text, false)
return (foldLineBreaks(text), false)
case .image:
return (strings.Message_Photo, true)
case .video: