1

您好,我正在尝试复制股票 SMS 消息的功能。我遇到的问题是,当我回复我“创建”并发送给另一个人的卡片时,它会将我的图像作为收件人。

这是时间线项目json:

"text":message,

    "notification": {
        "level": "DEFAULT"
    },
    "creator": {
        "displayName": "Me",
        "imageUrls": [
            fromimage
        ]
    },
    "recipients": [{
        "displayName": "Them",
        "imageUrls": [
            toimage
        ]
    }],
    "menuItems": [
        {
            "action": "REPLY"
        }
    ]
};

当我回复时,我希望它是这样的:

...
        "creator": {
             "displayName": "Them",
            "imageUrls": [
                toimage
            ]

        },
        "recipients": [{
           "displayName": "Me",
            "imageUrls": [
                fromimage
            ]   
        }],
    ...

相反,我得到了这个:

 ...
            "creator": {
                 "displayName": "Me",
                "imageUrls": [
                    fromimage
                ]

            },
            "recipients": [{
               "displayName": "Me",
                "imageUrls": [
                    fromimage
                ]   
            }],
        ...

所以现在我在收到回复通知时正在修补时间线卡,但当我回复“给自己”时,它仍然显示我的图片作为背景

4

1 回答 1

0

This is working as intended: when the user replies to a timeline card, the user is indeed the creator of the reply timeline card and the recipients are the creator or the recipients (minus the user) of the original timeline card.

于 2013-11-12T01:05:33.260 回答