Page MenuHomePhorge

Add necessary features to Implement handle matrix uri in kazv
Needs ReviewPublic

Authored by nannanko on Sat, Aug 23, 6:44 AM.

Details

Reviewers
tusooa
Group Reviewers
O1: the Kazv Project
Maniphest Tasks
T29: Parse matrix links
Summary

Add roomId for CreateRoomResponse.

Add Client::addDirectRoom().

Type: add

Test Plan

verify unit tests pass.

Diff Detail

Repository
rL libkazv
Branch
nannanko/create-room-response
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 417
Build 817: GitLab CI for libkazv
Build 816: arc lint + arc unit

Event Timeline

Please add a changelog type to the summary, using the following format:

Type: (add|remove|skip|security|fix)

nannanko removed a reviewer: servant.

Add addDirectRoom() function

nannanko retitled this revision from Add data json for CreateRoomResponse to Add necessary features to Implement handle matrix uri in kazv.
nannanko edited the summary of this revision. (Show Details)

Tests has not been written yet.

tusooa requested changes to this revision.Mon, Sep 8, 4:25 PM
tusooa added inline comments.
src/client/client.cpp
473–487

You should be reusing the content json of the original account data event, not directRoomMap(). directRoomMap is intended to be used as a way to quickly find which user a direct room is associated with. Your code here just convert things back and forth, and is inefficient and error-prone.

This revision now requires changes to proceed.Mon, Sep 8, 4:25 PM

Reusing the content json of the original account data event instead of directRoomMap()

Add comments of param for Client::addDirectRoom()