Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add last_message_timestamp support #266

Merged
merged 2 commits into from
Mar 3, 2018
Merged

Add last_message_timestamp support #266

merged 2 commits into from
Mar 3, 2018

Conversation

2FWAH
Copy link
Contributor

@2FWAH 2FWAH commented Feb 22, 2018

Add last_message_timestamp support for one to one and group conversations.

Close #264

Set last_message_timestamp for one to one and group conversations.
@carpedm20 carpedm20 merged commit bfcf495 into fbchat-dev:master Mar 3, 2018
@carpedm20
Copy link
Collaborator

Thanks for the PR.

carpedm20 added a commit that referenced this pull request Mar 3, 2018
madsmtm added a commit that referenced this pull request Mar 5, 2018
@@ -205,6 +207,7 @@ def graphql_to_group(group):
if group.get('image') is None:
group['image'] = {}
c_info = get_customization_info(group)
last_message_timestamp = group['last_message']['nodes'][0]['timestamp_precise']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line fails when calling searchForGroups, with a KeyError: u'last_message'. I've changed it to

if 'last_message' in group:
    last_message_timestamp = group['last_message']['nodes'][0]['timestamp_precise']

@madsmtm
Copy link
Member

madsmtm commented Mar 5, 2018

I'm sorry about being late on this, I've been sick for the last week.

@chelsybradley15 chelsybradley15 linked an issue Mar 25, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants