File tree 3 files changed +12
-0
lines changed
library/ui-strings/src/main/res/values
vector/src/main/java/im/vector/app/features/roomprofile
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 2335
2335
<item quantity =" one" >"One person"</item >
2336
2336
<item quantity =" other" >"%1$d people"</item >
2337
2337
</plurals >
2338
+ <string name =" room_profile_section_more_polls" >Poll history</string >
2338
2339
<string name =" room_profile_section_more_uploads" >Uploads</string >
2339
2340
<string name =" room_profile_section_more_leave" >Leave Room</string >
2340
2341
<string name =" direct_room_profile_section_more_leave" >Leave</string >
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ class RoomProfileController @Inject constructor(
56
56
fun onMemberListClicked ()
57
57
fun onBannedMemberListClicked ()
58
58
fun onNotificationsClicked ()
59
+ fun onPollHistoryClicked ()
59
60
fun onUploadsClicked ()
60
61
fun createShortcut ()
61
62
fun onSettingsClicked ()
@@ -263,6 +264,12 @@ class RoomProfileController @Inject constructor(
263
264
action = { callback?.onBannedMemberListClicked() }
264
265
)
265
266
}
267
+ buildProfileAction(
268
+ id = " poll_history" ,
269
+ title = stringProvider.getString(R .string.room_profile_section_more_polls),
270
+ icon = R .drawable.ic_attachment_poll,
271
+ action = { callback?.onPollHistoryClicked() }
272
+ )
266
273
buildProfileAction(
267
274
id = " uploads" ,
268
275
title = stringProvider.getString(R .string.room_profile_section_more_uploads),
Original file line number Diff line number Diff line change @@ -269,6 +269,10 @@ class RoomProfileFragment :
269
269
roomProfileSharedActionViewModel.post(RoomProfileSharedAction .OpenRoomNotificationSettings )
270
270
}
271
271
272
+ override fun onPollHistoryClicked () {
273
+ // TODO navigate to new screen
274
+ }
275
+
272
276
override fun onUploadsClicked () {
273
277
roomProfileSharedActionViewModel.post(RoomProfileSharedAction .OpenRoomUploads )
274
278
}
You can’t perform that action at this time.
0 commit comments