@@ -41,7 +41,7 @@ class MessageInfoViewController: UITableViewController {
if indexPath.row == 0 {
cell.textLabel?.numberOfLines = 0
cell.textLabel?.lineBreakMode = .byWordWrapping
- cell.textLabel?.text = message.text
+ cell.textLabel?.text = dcContext.getMsgInfo(msgId: message.id)
}
@@ -128,6 +128,13 @@ class DcContext {
dc_stop_ongoing_process(contextPointer)
+ func getMsgInfo(msgId: Int) -> String {
+ if let cString = dc_get_msg_info(self.contextPointer, UInt32(msgId)) {
+ return String(cString: cString)
+ }
+ return "ErrGetMsgInfo"
+
class DcLot {