Skip to content

Create chat message in history with date_sent in the past #100

@coredream

Description

@coredream

I'm trying to inject some old messages to an existing Quickblox group chat dialog. The links below describe what I'm trying to do:

http://quickblox.com/developers/Web_XMPP_Chat_Sample#Put_chat_messages_to_history http://quickblox.com/developers/Chat#Create_message

I'm using the code below, and it runs successfully:

    var timestamp = 1443072988;  // 2015-09-24
    var params = {
        chat_dialog_id: dialogId,
        message: text,
        date_sent: timestamp
    };

    // Send the message
    QB.chat.message.create(params, function(err, res) { });

However, it seems that the date_sent parameter is ignored. Is setting a custom date_sent parameter supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions