@@ -151,29 +151,29 @@ class DateTimeCompose(val bundle: Bundle) {
151
151
152
152
TextButton (
153
153
onClick = {
154
- val user = userManager.currentUser.blockingGet()
155
- val roomToken = bundle.getString(BundleKeys .KEY_ROOM_TOKEN )!!
156
- val messageId = bundle.getString(BundleKeys .KEY_MESSAGE_ID )!!
157
- val apiVersion = bundle.getInt(BundleKeys .KEY_CHAT_API_VERSION )
158
- val offset = timeState.value.atZone(ZoneOffset .systemDefault()).offset
159
- val timeVal = timeState.value.toEpochSecond(offset)
160
- chatViewModel.setReminder(user, roomToken, messageId, timeVal.toInt(), apiVersion)
161
154
shouldDismiss.value = true
162
155
},
163
156
modifier = Modifier
164
157
.weight(CUBED_PADDING )
165
158
) {
166
- Text (stringResource(R .string.set ))
159
+ Text (stringResource(R .string.close ))
167
160
}
168
161
169
162
TextButton (
170
163
onClick = {
164
+ val user = userManager.currentUser.blockingGet()
165
+ val roomToken = bundle.getString(BundleKeys .KEY_ROOM_TOKEN )!!
166
+ val messageId = bundle.getString(BundleKeys .KEY_MESSAGE_ID )!!
167
+ val apiVersion = bundle.getInt(BundleKeys .KEY_CHAT_API_VERSION )
168
+ val offset = timeState.value.atZone(ZoneOffset .systemDefault()).offset
169
+ val timeVal = timeState.value.toEpochSecond(offset)
170
+ chatViewModel.setReminder(user, roomToken, messageId, timeVal.toInt(), apiVersion)
171
171
shouldDismiss.value = true
172
172
},
173
173
modifier = Modifier
174
174
.weight(CUBED_PADDING )
175
175
) {
176
- Text (stringResource(R .string.close ))
176
+ Text (stringResource(R .string.set ))
177
177
}
178
178
}
179
179
}
0 commit comments