From b57e3c268f1aa66a78a13d48e4bf9dbed1b17fb6 Mon Sep 17 00:00:00 2001 From: Chumva Date: Wed, 3 Oct 2018 18:04:25 +0300 Subject: [PATCH] fix array --- .../src/net/osmand/telegram/helpers/TelegramHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt index 415ba0df6c..db13f350ff 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt @@ -614,7 +614,7 @@ class TelegramHelper private constructor() { if (msgId != null && msgId != 0L) { val array = LongArray(1) array[0] = msgId - client?.send(TdApi.DeleteMessages(chatId, arrayOf(msgId), true), UpdatesHandler()) + client?.send(TdApi.DeleteMessages(chatId, array, true), UpdatesHandler()) } needRefreshActiveLiveLocationMessages = true }