Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Use account's static groups instead of a conversation's groups for di…
Browse files Browse the repository at this point in the history
…alogue group state
  • Loading branch information
justinvdm committed May 12, 2014
1 parent 0b9860c commit 31cacee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/apps/dialogue/view_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ def get(self, request, conversation):
"Failed to load dialogue from Go API:"
" (%r) %r." % (r.status_code, r.text))

contact_store = conversation.user_api.contact_store
groups = contact_store.list_static_groups()

model_data = {
'campaign_id': request.user_api.user_account_key,
'conversation_key': conversation.key,
'groups': [g.get_data() for g in conversation.get_groups()],
'groups': [g.get_data() for g in groups],
'urls': {
'show': self.get_view_url(
'show',
Expand Down

0 comments on commit 31cacee

Please sign in to comment.