From 4bb2e46f835305f4b6fbec060b2ffa36b1e4b739 Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Wed, 7 Dec 2022 13:02:08 +0000 Subject: [PATCH] Add message id for to-device events --- Riot/Managers/UISIAutoReporter/UISIAutoReporter.swift | 7 ++++--- changelog.d/pr-7141.change | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelog.d/pr-7141.change diff --git a/Riot/Managers/UISIAutoReporter/UISIAutoReporter.swift b/Riot/Managers/UISIAutoReporter/UISIAutoReporter.swift index e6a02982b..f8cb8ddaf 100644 --- a/Riot/Managers/UISIAutoReporter/UISIAutoReporter.swift +++ b/Riot/Managers/UISIAutoReporter/UISIAutoReporter.swift @@ -175,9 +175,10 @@ extension UISIAutoReportData: Codable { ] contentMap.setObject(content as NSDictionary, forUser: source.senderUserId, andDevice: source.senderDeviceId) session.matrixRestClient.sendDirectToDevice( - eventType: Self.autoRsRequest, - contentMap: contentMap, - txnId: nil + payload: .init( + eventType: Self.autoRsRequest, + contentMap: contentMap + ) ) { response in if response.isFailure { MXLog.warning("failed to send auto-uisi to device") diff --git a/changelog.d/pr-7141.change b/changelog.d/pr-7141.change new file mode 100644 index 000000000..1ffa18ef5 --- /dev/null +++ b/changelog.d/pr-7141.change @@ -0,0 +1 @@ +Add message id for to-device events