Only allow new introductions in START state

When the user attempts an introduction, instead of the introduction
message input field, an explanatory text will be shown and the
introduction can not be made until the last one has been finished.
This commit is contained in:
Torsten Grote
2018-04-25 12:05:15 -03:00
parent 94a6137a42
commit b291fcd2cd
6 changed files with 88 additions and 13 deletions

View File

@@ -25,6 +25,8 @@ public interface IntroductionManager extends ConversationClient {
*/
int CLIENT_VERSION = 1;
boolean canIntroduce(Contact c1, Contact c2) throws DbException;
/**
* Sends two initial introduction messages.
*/