Package 

Class MessageUtilsKt

    • Method Summary

      Modifier and Type Method Description
      final static String getMessageType(Message message) Updates the type of the Message based on its content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMessageType

         final static String getMessageType(Message message)

        Updates the type of the Message based on its content.

        If the message has attachments to upload, the type will be MessageType.EPHEMERAL (local-only - after the attachments are uploaded, the type is changed to MessageType.REGULAR). If the message is a system message, the type will be MessageType.SYSTEM. Otherwise, the type will be MessageType.REGULAR, as we cannot send messages which are not regular or system.

        Parameters:
        message - The message to update.