Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NextcloudTalk/BaseChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -934,15 +934,15 @@ import QuickLook
if message.isObjectShare() {
NCAPIController.sharedInstance().shareRichObject(message.richObjectFromObjectShare(), inRoom: room.token, for: activeAccount) { error in
if error == nil {
self.view.makeToast(NSLocalizedString("Added note to self", comment: ""), duration: 1.5, position: CSToastPositionCenter)
self.view.makeToast(NSLocalizedString("Added to personal notes", comment: ""), duration: 1.5, position: CSToastPositionCenter)
} else {
self.view.makeToast(NSLocalizedString("An error occurred while adding note", comment: ""), duration: 1.5, position: CSToastPositionCenter)
}
}
} else {
NCAPIController.sharedInstance().sendChatMessage(message.parsedMessage().string, toRoom: room.token, displayName: nil, replyTo: -1, referenceId: nil, silently: false, for: activeAccount) { error in
if error == nil {
self.view.makeToast(NSLocalizedString("Added note to self", comment: ""), duration: 1.5, position: CSToastPositionCenter)
self.view.makeToast(NSLocalizedString("Added to personal notes", comment: ""), duration: 1.5, position: CSToastPositionCenter)
} else {
self.view.makeToast(NSLocalizedString("An error occurred while adding note", comment: ""), duration: 1.5, position: CSToastPositionCenter)
}
Expand Down
2 changes: 1 addition & 1 deletion NextcloudTalk/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ import UIKit
// Note to self
if message.file() == nil, message.poll() == nil, !message.isDeletedMessage(), room.type != kNCRoomTypeNoteToSelf,
NCDatabaseManager.sharedInstance().serverHasTalkCapability(kCapabilityNoteToSelf) {
actions.append(UIAction(title: NSLocalizedString("Note to self", comment: ""), image: .init(systemName: "square.and.pencil")) { _ in
actions.append(UIAction(title: NSLocalizedString("Add to personal notes", comment: ""), image: .init(systemName: "square.and.pencil")) { _ in
self.didPressNoteToSelf(for: message)
})
}
Expand Down
8 changes: 4 additions & 4 deletions NextcloudTalk/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@
"Add to favorites" = "Add to favorites";

/* No comment provided by engineer. */
"Added note to self" = "Added note to self";
"Add to personal notes" = "Add to personal notes";

/* No comment provided by engineer. */
"Added to personal notes" = "Added to personal notes";

/* No comment provided by engineer. */
"Address" = "Address";
Expand Down Expand Up @@ -1171,9 +1174,6 @@
/* No comment provided by engineer. */
"Not supported" = "Not supported";

/* No comment provided by engineer. */
"Note to self" = "Note to self";

/* No comment provided by engineer. */
"Notifications" = "Notifications";

Expand Down