mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Fix composer text coloration
This commit is contained in:
@@ -33,13 +33,9 @@ extension RoomViewController {
|
||||
} else {
|
||||
newAttributedString.appendString(roomMember.displayname.count > 0 ? roomMember.displayname : roomMember.userId)
|
||||
}
|
||||
let empty = NSAttributedString(string: " ",
|
||||
attributes: [.font: inputToolbar.textDefaultFont])
|
||||
newAttributedString.append(empty)
|
||||
newAttributedString.appendString(" ")
|
||||
} else if roomMember.userId == self.mainSession.myUser.userId {
|
||||
let selfMentionString = NSAttributedString(string: "/me ",
|
||||
attributes: [.font: inputToolbar.textDefaultFont])
|
||||
newAttributedString.append(selfMentionString)
|
||||
newAttributedString.appendString("/me ")
|
||||
} else {
|
||||
if #available(iOS 15.0, *) {
|
||||
newAttributedString.append(PillsFormatter.mentionPill(withRoomMember: roomMember,
|
||||
@@ -48,9 +44,7 @@ extension RoomViewController {
|
||||
} else {
|
||||
newAttributedString.appendString(roomMember.displayname.count > 0 ? roomMember.displayname : roomMember.userId)
|
||||
}
|
||||
let colon = NSAttributedString(string: ": ",
|
||||
attributes: [.font: inputToolbar.textDefaultFont])
|
||||
newAttributedString.append(colon)
|
||||
newAttributedString.appendString(": ")
|
||||
}
|
||||
|
||||
inputToolbar.attributedTextMessage = newAttributedString
|
||||
|
||||
Reference in New Issue
Block a user