File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ struct Message {
28
28
/// stream or group of users). Useful primarily for hashing.
29
29
#[ allow( unused) ]
30
30
recipient_id : u64 ,
31
- sender_short_name : Option < String > ,
32
31
sender_full_name : String ,
33
32
sender_email : String ,
34
33
/// The ID of the stream.
@@ -269,10 +268,7 @@ async fn execute_for_other_user(
269
268
. unwrap_or_default ( ) ;
270
269
271
270
// At this point, the command has been run.
272
- let sender = match & message_data. sender_short_name {
273
- Some ( short_name) => format ! ( "{} ({})" , message_data. sender_full_name, short_name) ,
274
- None => message_data. sender_full_name . clone ( ) ,
275
- } ;
271
+ let sender = & message_data. sender_full_name ;
276
272
let message = format ! ( "{sender} ran `{command}` with output `{output}` as you." ) ;
277
273
278
274
let res = MessageApiRequest {
You can’t perform that action at this time.
0 commit comments