mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Change console incoming message text to include "win"
This commit is contained in:
parent
c0b099f347
commit
1b88b5706e
@ -325,7 +325,7 @@ cons_show_incoming_message(const char *const short_from, const int win_index)
|
||||
if (ui_index == 10) {
|
||||
ui_index = 0;
|
||||
}
|
||||
win_vprint(console, '-', 0, NULL, 0, THEME_INCOMING, "", "<< incoming from %s (%d)", short_from, ui_index);
|
||||
win_vprint(console, '-', 0, NULL, 0, THEME_INCOMING, "", "<< incoming from %s (win %d)", short_from, ui_index);
|
||||
|
||||
cons_alert();
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ sends_message_to_fulljid_when_received_from_fulljid(void **state)
|
||||
"<body>First message</body>"
|
||||
"</message>"
|
||||
);
|
||||
assert_true(prof_output_exact("<< incoming from Buddy1/mobile (2)"));
|
||||
assert_true(prof_output_exact("<< incoming from Buddy1/mobile (win 2)"));
|
||||
|
||||
prof_input("/msg buddy1@localhost Hi there");
|
||||
|
||||
@ -91,7 +91,7 @@ sends_subsequent_messages_to_fulljid(void **state)
|
||||
"<body>First message</body>"
|
||||
"</message>"
|
||||
);
|
||||
assert_true(prof_output_exact("<< incoming from Buddy1/mobile (2)"));
|
||||
assert_true(prof_output_exact("<< incoming from Buddy1/mobile (win 2)"));
|
||||
|
||||
prof_input("/msg buddy1@localhost Outgoing 1");
|
||||
assert_true(stbbr_received(
|
||||
@ -132,7 +132,7 @@ resets_to_barejid_after_presence_received(void **state)
|
||||
"<body>First message</body>"
|
||||
"</message>"
|
||||
);
|
||||
assert_true(prof_output_exact("<< incoming from Buddy1/mobile (2)"));
|
||||
assert_true(prof_output_exact("<< incoming from Buddy1/mobile (win 2)"));
|
||||
|
||||
prof_input("/msg buddy1@localhost Outgoing 1");
|
||||
assert_true(stbbr_received(
|
||||
@ -182,7 +182,7 @@ new_session_when_message_received_from_different_fulljid(void **state)
|
||||
"<body>From first resource</body>"
|
||||
"</message>"
|
||||
);
|
||||
assert_true(prof_output_exact("<< incoming from Buddy1/mobile (2)"));
|
||||
assert_true(prof_output_exact("<< incoming from Buddy1/mobile (win 2)"));
|
||||
|
||||
prof_input("/msg buddy1@localhost Outgoing 1");
|
||||
assert_true(stbbr_received(
|
||||
|
@ -38,5 +38,5 @@ message_receive(void **state)
|
||||
"</message>"
|
||||
);
|
||||
|
||||
assert_true(prof_output_exact("<< incoming from someuser@chatserv.org/laptop (2)"));
|
||||
assert_true(prof_output_exact("<< incoming from someuser@chatserv.org/laptop (win 2)"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user