mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Various tweaks following code review
This commit is contained in:
committed by
Stefan Ceriu
parent
5f6edacc1a
commit
8b11727f19
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user