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, id: String? = nil,
sentTimestamp: UInt64? = nil, sentTimestamp: UInt64? = nil,
receivedTimestamp: UInt64? = nil, receivedTimestamp: UInt64? = nil,
recipient: String? = nil,
sender: String? = nil, sender: String? = nil,
openGroupServerMessageId: UInt64? = nil, openGroupServerMessageId: UInt64? = nil,
openGroupWhisper: Bool = false, openGroupWhisper: Bool = false,

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

Loading…
Cancel
Save