Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit 30589ba

Browse files
authored
Merge pull request #2521 from RocketChat/chore/remove_at_usernames
[CHORE] Remove @ from file attachments, autocomplete & quotes
2 parents 5d638ed + 18bf081 commit 30589ba

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Rocket.Chat/Controllers/Chat/MessagesViewControllerComposerDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ extension MessagesViewController: ComposerViewExpandedDelegate {
7777

7878
case .userGroup(let userGroup):
7979
let cell = hintsView.dequeueReusableCell(withType: TextHintLabelCell.self)
80-
cell.prefixView.text = "@"
80+
cell.prefixView.text = ""
8181
cell.valueLabel.text = userGroup
8282
return cell
8383
}

Rocket.Chat/Models/Mapping/AttachmentModelMapping.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extension Attachment: ModelMappeable {
2626
}
2727

2828
if let authorName = values["author_name"].string {
29-
self.title = "@\(authorName)"
29+
self.title = "\(authorName)"
3030
}
3131

3232
if let title = values["title"].string {

Rocket.Chat/Views/Subscriptions/FileTableViewCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class FileTableViewCell: UITableViewCell {
3636

3737
func updateFileData() {
3838
name.text = file.name
39-
username.text = "@\(file.username)"
39+
username.text = "\(file.username)"
4040
uploadedAt.text = file.uploadedAt?.formatted()
4141

4242
guard let fileURL = file.fullFileURL() else {

0 commit comments

Comments
 (0)