[client] Reactions and replies: a message is named by its author and seq, a reply carries its reference, a reaction sets or removes, a newer kind is Unsupported
This commit is contained in:
@@ -59,11 +59,15 @@ fn two_people_pair_through_an_invite_and_talk_both_ways() {
|
||||
vec![
|
||||
Event::Message {
|
||||
contact: jan_side,
|
||||
text: "Ahoj Jane, pivo ve čtvrtek?".into()
|
||||
text: "Ahoj Jane, pivo ve čtvrtek?".into(),
|
||||
seq: 1,
|
||||
reply_to: None,
|
||||
},
|
||||
Event::Message {
|
||||
contact: jan_side,
|
||||
text: "V sedm.".into()
|
||||
text: "V sedm.".into(),
|
||||
seq: 2,
|
||||
reply_to: None,
|
||||
},
|
||||
]
|
||||
);
|
||||
@@ -72,7 +76,9 @@ fn two_people_pair_through_an_invite_and_talk_both_ways() {
|
||||
eva.poll().expect("poll"),
|
||||
vec![Event::Message {
|
||||
contact: eva_side,
|
||||
text: "Platí 🍺".into()
|
||||
text: "Platí 🍺".into(),
|
||||
seq: 1,
|
||||
reply_to: None,
|
||||
}]
|
||||
);
|
||||
// Everything delivered was acknowledged: nothing waits on the relay, and a second poll is
|
||||
@@ -168,7 +174,9 @@ fn junk_in_a_mailbox_is_dropped_and_never_shown() {
|
||||
eva.poll().expect("poll"),
|
||||
vec![Event::Message {
|
||||
contact: eva_side,
|
||||
text: "still here".into()
|
||||
text: "still here".into(),
|
||||
seq: 1,
|
||||
reply_to: None,
|
||||
}]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user