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

Support inviting, kicking and dealing with rooms in Invite state #83

Merged
merged 9 commits into from
Sep 21, 2017

Commits on Sep 9, 2017

  1. converters.h: Facility methods for generated jobs

    A cherry-pick from the kitsune-apigen branch; a family of toJson() and fromJson<>() functions to unify conversion of data back and forth.
    KitsuneRal committed Sep 9, 2017
    Configuration menu
    Copy the full SHA
    d57485b View commit details
    Browse the repository at this point in the history
  2. First files made by api-generator

    Actual usage will come with the next commit.
    KitsuneRal committed Sep 9, 2017
    Configuration menu
    Copy the full SHA
    8ae1da5 View commit details
    Browse the repository at this point in the history
  3. Kicking, inviting, exposing rooms in Invite state

    Kicking and inviting use generated job classes. Rooms in Invite state are stored separately in the hash from those in Join/Leave state because The Spec says so. For clients, this means that the same room may appear twice in the rooms map if it's been left and then the user was again invited to it. The code in Quaternion that properly processes this will arrive shortly.
    KitsuneRal committed Sep 9, 2017
    Configuration menu
    Copy the full SHA
    24e3d96 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6300d53 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2017

  1. Add a missing #include

    KitsuneRal committed Sep 13, 2017
    Configuration menu
    Copy the full SHA
    5ddfbf2 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2017

  1. Better API for clients to catch up on room list changes

    joinedRoom() and leftRoom() now pass the preempted Invite state of the
    room as well; roomMap() only returns Invite and Join rooms, not Leave.
    KitsuneRal committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    6b40c31 View commit details
    Browse the repository at this point in the history
  2. provideRoom: Added invitedRoom() signal; fixed issues with some trans…

    …itions
    
    Notably:
    * setJoinState() invocation has been missing from the previous code
    * processing invites did not take into account that a Leave state may already exist, thereby forcing clients that display left rooms to look through their records just in case they have to replace a Leave with Invite.
    * joinedRoom() was emitted even when the room is not newly joined.
    KitsuneRal committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    726f8d4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16fd53f View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2017

  1. Configuration menu
    Copy the full SHA
    9cc3f82 View commit details
    Browse the repository at this point in the history