~phablet-team/messaging-framework/maintain-connection-state

« back to all changes in this revision

Viewing changes to src/messaging/qt/tp/connection.cpp

  • Committer: Tarmac
  • Author(s): Roberto Mier Escandon
  • Date: 2016-08-23 22:33:39 UTC
  • mfrom: (50.1.19 allow-members-have-roles)
  • Revision ID: tarmac-20160823223339-w6d9xjzyqly8k2b6
Fw code modifying Members to use Roles interface so that upper layers receive participants permissions
Also setting roles when added members from the client

NOTE: This MR should be landed along with https://code.launchpad.net/~ningbo-team/ningbo/roles-management/+merge/303265.

Approved by Tiago Salem Herrmann, system-apps-ci-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include <messaging/qt/runtime.h>
20
20
#include <messaging/qt/tp/text_channel.h>
21
21
 
 
22
#include <messaging/qt/tp/interfaces/base_channel_destroyable.h>
 
23
#include <messaging/qt/tp/interfaces/base_channel_roles.h>
 
24
 
22
25
#include <messaging/message.h>
23
26
#include <messaging/presence_status_not_supported.h>
24
27
#include <messaging/user.h>
25
28
#include <messaging/group.h>
 
29
#include <messaging/flags.h>
26
30
 
27
31
#include <TelepathyQt/Constants>
28
32
 
692
696
                    }
693
697
 
694
698
                    //FIXME: get contact attribute display name for the user second param
695
 
                    initial_invitees.push_back(std::make_shared<Member>(normalized_id, PendingStatus::Remote, std::string{}/* display_name*/ ));
 
699
                    //FIXME: consider here if needed to provide initial roles to members
 
700
                    initial_invitees.push_back(std::make_shared<Member>(normalized_id,
 
701
                                                                        PendingStatus::Remote,
 
702
                                                                        Flags<Role>(Role::Member),
 
703
                                                                        std::string{}/* display_name*/ ));
696
704
                }
697
705
            }
698
706