Respond to CR.
This commit is contained in:
parent
d351bbd290
commit
7cceec9325
@ -208,7 +208,7 @@ NSUInteger TSCallCurrentSchemaVersion = 1;
|
||||
|
||||
[self anyUpdateCallWithTransaction:transaction
|
||||
block:^(TSCall *call) {
|
||||
self.callType = callType;
|
||||
call.callType = callType;
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
@ -622,8 +622,10 @@ struct GRDBInteractionFinderAdapter: InteractionFinderAdapter {
|
||||
SELECT \(interactionColumn: .uniqueId)
|
||||
FROM \(InteractionRecord.databaseTableName)
|
||||
WHERE \(interactionColumn: .recordType) = ?
|
||||
AND ( \(interactionColumn: .callType) = ?
|
||||
OR \(interactionColumn: .callType) = ? )
|
||||
AND (
|
||||
\(interactionColumn: .callType) = ?
|
||||
OR \(interactionColumn: .callType) = ?
|
||||
)
|
||||
"""
|
||||
let statementArguments: StatementArguments = [
|
||||
SDSRecordType.call.rawValue,
|
||||
@ -632,12 +634,9 @@ struct GRDBInteractionFinderAdapter: InteractionFinderAdapter {
|
||||
]
|
||||
var result = [String]()
|
||||
do {
|
||||
let cursor = try String.fetchCursor(transaction.database,
|
||||
sql: sql,
|
||||
arguments: statementArguments)
|
||||
while let uniqueId = try cursor.next() {
|
||||
result.append(uniqueId)
|
||||
}
|
||||
result = try String.fetchAll(transaction.database,
|
||||
sql: sql,
|
||||
arguments: statementArguments)
|
||||
} catch {
|
||||
owsFailDebug("error: \(error)")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user