Add TODOs
This commit is contained in:
parent
fbaa4dae6b
commit
bb8996530e
1 changed files with 2 additions and 0 deletions
|
@ -581,6 +581,7 @@ class TelegramHelper private constructor() {
|
||||||
is TdApi.MessageLocation -> true
|
is TdApi.MessageLocation -> true
|
||||||
is TdApi.MessageText -> {
|
is TdApi.MessageText -> {
|
||||||
if (content.text.text.startsWith("{")) {
|
if (content.text.text.startsWith("{")) {
|
||||||
|
// TODO: get user from library if null
|
||||||
if (users[senderUserId]?.username == OSMAND_BOT_USERNAME) {
|
if (users[senderUserId]?.username == OSMAND_BOT_USERNAME) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -775,6 +776,7 @@ class TelegramHelper private constructor() {
|
||||||
TdApi.UpdateMessageContent.CONSTRUCTOR -> {
|
TdApi.UpdateMessageContent.CONSTRUCTOR -> {
|
||||||
val updateMessageContent = obj as TdApi.UpdateMessageContent
|
val updateMessageContent = obj as TdApi.UpdateMessageContent
|
||||||
val message = getMessageById(updateMessageContent.messageId)
|
val message = getMessageById(updateMessageContent.messageId)
|
||||||
|
// TODO: get message from library if null
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
synchronized(message) {
|
synchronized(message) {
|
||||||
message.content = updateMessageContent.newContent
|
message.content = updateMessageContent.newContent
|
||||||
|
|
Loading…
Reference in a new issue