Skip to content

Update room object #14

@malakada

Description

@malakada

The room object returned by Candy.Core.getRoom(roomJid) is incomplete. It's missing:

  • a way to get to the DOM pane element
  • the information from Candy.View.Pane.Chat.rooms[roomJid]:
    • enableScroll: false
    • id: "068b38b88f05b8304d9c6dfb06ac2e21"
    • mentionsCount: 0
    • messageCount: 4
    • name: "thing"
    • scrollPosition: -1
    • targetJid: "[email protected]"
    • type: "groupchat"
    • user: Candy.Core.ChatUser
    • usercount: 1

Related triggerHandler PRs:

Of the above list, PRs 12, 13, 15, 17, 18, and 19 are probably the most relevant as they need information from the Chatroom object that it doesn't currently provide.

This is where the room object is first created: https://github.com/mojolingo/candy/blob/dev/src/view/pane/room.js#L76

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions