Removed a couple of unused variables

pull/1047/head
Morgan Pretty 6 months ago
parent 7af0f865f5
commit d2f062cfb2

@ -41,7 +41,6 @@ public class Message: Codable {
id: String? = nil,
sentTimestamp: UInt64? = nil,
receivedTimestamp: UInt64? = nil,
recipient: String? = nil,
sender: String? = nil,
openGroupServerMessageId: UInt64? = nil,
openGroupWhisper: Bool = false,

@ -56,7 +56,6 @@ public final class VisibleMessage: Message {
public init(
sender: String? = nil,
sentTimestamp: UInt64? = nil,
recipient: String? = nil,
syncTarget: String? = nil,
text: String?,
attachmentIds: [String] = [],
@ -79,7 +78,6 @@ public final class VisibleMessage: Message {
super.init(
sentTimestamp: sentTimestamp,
recipient: recipient,
sender: sender
)
}
@ -241,7 +239,6 @@ public extension VisibleMessage {
let visibleMessage: VisibleMessage = VisibleMessage(
sender: interaction.authorId,
sentTimestamp: UInt64(interaction.timestampMs),
recipient: interaction.threadId,
syncTarget: nil,
text: interaction.body,
attachmentIds: ((try? interaction.attachments.fetchAll(db)) ?? [])

Loading…
Cancel
Save