Various tweaks following code review

This commit is contained in:
Stefan Ceriu
2023-03-31 16:44:28 +03:00
committed by Stefan Ceriu
parent 5f6edacc1a
commit 8b11727f19
19 changed files with 82 additions and 74 deletions
@@ -194,7 +194,7 @@ class RoomProxy: RoomProxyProtocol {
try self.room.sendReply(msg: message, inReplyToEventId: eventID, txnId: transactionId)
} else {
let messageContent = messageEventContentFromMarkdown(md: message)
try self.room.send(msg: messageContent, txnId: transactionId)
self.room.send(msg: messageContent, txnId: transactionId)
}
} catch {
return .failure(.failedSendingMessage)
@@ -219,7 +219,7 @@ class RoomProxy: RoomProxyProtocol {
}
}
func sendImage(body: String, url: URL) async -> Result<Void, RoomProxyError> {
func sendImage(url: URL) async -> Result<Void, RoomProxyError> {
.failure(.failedSendingMedia)
}
@@ -71,7 +71,7 @@ protocol RoomProxyProtocol {
func sendReaction(_ reaction: String, to eventID: String) async -> Result<Void, RoomProxyError>
func sendImage(body: String, url: URL) async -> Result<Void, RoomProxyError>
func sendImage(url: URL) async -> Result<Void, RoomProxyError>
func editMessage(_ newMessage: String, original eventID: String) async -> Result<Void, RoomProxyError>