Skip to content

Commit

Permalink
'save' is just a shortcut for 'forward to saved messages'
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Feb 7, 2025
1 parent 051c9b9 commit 331f9e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deltachat-ios/Helper/RelayHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ class RelayHelper {
}

func forwardIdsAndFinishRelaying(to chat: Int) {
if let messageIds = self.forwardIds {
RelayHelper.dcContext?.forwardMessages(with: messageIds, to: chat)
if let messageIds = self.forwardIds, let dcContext = RelayHelper.dcContext {
if dcContext.getChat(chatId: chat).isSelfTalk {
dcContext.saveMessages(with: messageIds)
} else {
dcContext.forwardMessages(with: messageIds, to: chat)
}
}
finishRelaying()
}
Expand Down

0 comments on commit 331f9e0

Please sign in to comment.