Skip to content

Commit

Permalink
Merge pull request #90 from matrix-org/dbkr/mark_as_read_unread
Browse files Browse the repository at this point in the history
Events for mark as read / unread
  • Loading branch information
dbkr authored Feb 20, 2024
2 parents 6872268 + 35d3b98 commit c3bd1e1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schemas/Interaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
{"const": "WebRoomHeaderContextMenuSettingsItem", "description": "User accessed room settings using the context menu on the header of a room in Element Web/Desktop." },
{"const": "WebRightPanelRoomInfoSettingsButton", "description": "User accessed room settings using the 'Settings' button in the right panel room summary card of Element Web/Desktop." },
{"const": "WebRoomListRoomTileContextMenuInviteItem", "description": "User accessed the room invite flow using the context menu on a room tile in the room list in Element Web/Desktop." },
{"const": "WebRoomListRoomTileContextMenuMarkRead", "description": "User marked a message as read using the context menu on a room tile in the room list in Element Web/Desktop." },
{"const": "WebRoomListRoomTileContextMenuMarkUnread", "description": "User marked a room as unread using the context menu on a room tile in the room list in Element Web/Desktop." },
{"const": "WebRoomHeaderContextMenuInviteItem", "description": "User accessed the room invite flow using the context menu on the header of a room in Element Web/Desktop." },
{"const": "WebRightPanelMemberListInviteButton", "description": "User accessed the room invite flow using the button at the top of the room member list in the right panel of Element Web/Desktop." },
{"const": "WebRightPanelRoomUserInfoInviteButton", "description": "User invited someone to room by clicking invite on the right panel user info card in Element Web/Desktop." },
Expand Down
12 changes: 12 additions & 0 deletions types/kotlin2/Interaction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,18 @@ data class Interaction(
*/
WebRoomListRoomTileContextMenuLeaveItem,

/**
* User marked a message as read using the context menu on a room tile
* in the room list in Element Web/Desktop.
*/
WebRoomListRoomTileContextMenuMarkRead,

/**
* User marked a room as unread using the context menu on a room tile in
* the room list in Element Web/Desktop.
*/
WebRoomListRoomTileContextMenuMarkUnread,

/**
* User accessed room settings using the context menu on a room tile in
* the room list in Element Web/Desktop.
Expand Down
4 changes: 4 additions & 0 deletions types/swift/Interaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ extension AnalyticsEvent {
case WebRoomListRoomTileContextMenuInviteItem
/// User interacted with leave action in the context menu on a room tile in the room list in Element Web/Desktop.
case WebRoomListRoomTileContextMenuLeaveItem
/// User marked a message as read using the context menu on a room tile in the room list in Element Web/Desktop.
case WebRoomListRoomTileContextMenuMarkRead
/// User marked a room as unread using the context menu on a room tile in the room list in Element Web/Desktop.
case WebRoomListRoomTileContextMenuMarkUnread
/// User accessed room settings using the context menu on a room tile in the room list in Element Web/Desktop.
case WebRoomListRoomTileContextMenuSettingsItem
/// User accessed their room notification settings via the context menu on a room tile in the room list in Element Web/Desktop.
Expand Down

0 comments on commit c3bd1e1

Please sign in to comment.