Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

見かけ上direct_messageを削除できない #166

Open
ktoku89 opened this issue Nov 8, 2015 · 1 comment
Open

見かけ上direct_messageを削除できない #166

ktoku89 opened this issue Nov 8, 2015 · 1 comment
Labels

Comments

@ktoku89
Copy link
Contributor

ktoku89 commented Nov 8, 2015

UserStreamからdirect_messageのdeleteイベントを受信した場合、timestamp_msプロパティが存在しないため例外が発生し、StarryEyesのデータベースからの削除が行われない。

https://github.com/karno/StarryEyes/blob/blend/StarryEyes.Anomaly/TwitterApi/Streams/TwitterStreamParser.cs#L83

if (graph.delete.direct_message())
{
    handler.OnMessage(new StreamDelete(
        Int64.Parse(graph.delete.status.id_str),
        Int64.Parse(graph.delete.direct_message.user_id.ToString()),
        graph.delete.timestamp_ms));
    return;
}
@karno
Copy link
Owner

karno commented Nov 12, 2015

えっマジで

@karno karno added the bug label Nov 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants