Skip to content

Commit

Permalink
fix: MessageLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
rhunk committed Jan 28, 2024
1 parent 043637a commit dd34e4e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class MessageLogger : Feature("MessageLogger",

//serialize all properties of messageJsonObject and put in the message object
messageInstance.javaClass.declaredFields.forEach { field ->
if (field.name != "mMessageContent" && field.name != "mMetadata") return@forEach
field.isAccessible = true
messageJsonObject[field.name]?.let { fieldValue ->
field.set(messageInstance, context.gson.fromJson(fieldValue, field.type))
Expand Down

0 comments on commit dd34e4e

Please sign in to comment.