Changeset View
Changeset View
Standalone View
Standalone View
src/contents/ui/RoomPage.qml
| Show All 17 Lines | |||||
| Kazv.ScrollablePageAdapter { | Kazv.ScrollablePageAdapter { | ||||
| id: roomPage | id: roomPage | ||||
| property string roomId: '' | property string roomId: '' | ||||
| property var room: sdkVars.roomList.room(roomId) | property var room: sdkVars.roomList.room(roomId) | ||||
| property var roomNameProvider: Kazv.RoomNameProvider { | property var roomNameProvider: Kazv.RoomNameProvider { | ||||
| room: roomPage.room | room: roomPage.room | ||||
| } | } | ||||
| property var roomTimeline: room.timeline() | property var roomTimeline: room.timeline() | ||||
| property var pinnedEvents: room.pinnedEventsTimeline() | |||||
| property var lastReceiptableEventId: getLastReceiptableEventId(roomTimeline, roomTimeline.count) | property var lastReceiptableEventId: getLastReceiptableEventId(roomTimeline, roomTimeline.count) | ||||
| property var paginationRequests: ({}) | property var paginationRequests: ({}) | ||||
| property var refreshRoomStateRequest: null | property var refreshRoomStateRequest: null | ||||
| signal mentionUserRequested(string userId) | signal mentionUserRequested(string userId) | ||||
| signal replaceDraftRequested(string newDraft) | signal replaceDraftRequested(string newDraft) | ||||
| signal paginateBackRequested(string eventId) | signal paginateBackRequested(string eventId) | ||||
| signal viewEventHistoryRequested(string eventId) | signal viewEventHistoryRequested(string eventId) | ||||
| Show All 27 Lines | Kirigami.Action { | ||||
| onTriggered: joinRoomHandler.call() | onTriggered: joinRoomHandler.call() | ||||
| }, | }, | ||||
| Kirigami.Action { | Kirigami.Action { | ||||
| id: rejectInviteAction | id: rejectInviteAction | ||||
| icon.name: 'im-ban-kick-user' | icon.name: 'im-ban-kick-user' | ||||
| text: l10n.get('room-invite-reject-action') | text: l10n.get('room-invite-reject-action') | ||||
| visible: isInvite | visible: isInvite | ||||
| onTriggered: leaveRoomHandler.call() | onTriggered: leaveRoomHandler.call() | ||||
| }, | |||||
| Kirigami.Action { | |||||
| id: pinnedEventsAction | |||||
| objectName: 'pinnedEventsAction' | |||||
| icon.name: 'pin' | |||||
| visible: roomPage.pinnedEvents.count | |||||
| enabled: roomPage.pinnedEvents.count | |||||
| text: l10n.get('room-pinned-events-action', { count: roomPage.pinnedEvents.count }) | |||||
| onTriggered: activateRoomPinnedEventsPage(room) | |||||
| }, | }, | ||||
| Kirigami.Action { | Kirigami.Action { | ||||
| id: roomSettingsAction | id: roomSettingsAction | ||||
| icon.name: 'settings-configure' | icon.name: 'settings-configure' | ||||
| text: l10n.get('room-settings-action') | text: l10n.get('room-settings-action') | ||||
| onTriggered: activateRoomSettingsPage(room) | onTriggered: activateRoomSettingsPage(room) | ||||
| } | } | ||||
| ] | ] | ||||
| ▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines | |||||