...
 
Commits (4)
......@@ -5,7 +5,7 @@
<groupId>be.rlab</groupId>
<artifactId>tehanu</artifactId>
<packaging>pom</packaging>
<version>2.1.1-SNAPSHOT</version>
<version>2.2.1-SNAPSHOT</version>
<name>Tehanu - parent</name>
<description>Tehanu is a Telegram bot for Kotlin</description>
......@@ -333,6 +333,7 @@
<pushChanges>false</pushChanges>
<mavenExecutorId>forked-path</mavenExecutorId>
<arguments>-Dgpg.passphrase=${gpg.passphrase} -Dgpg.keyname=${gpg.keyname}</arguments>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
<dependencies>
<dependency>
......
......@@ -5,12 +5,12 @@
<parent>
<groupId>be.rlab</groupId>
<artifactId>tehanu</artifactId>
<version>2.1.1-SNAPSHOT</version>
<version>2.2.1-SNAPSHOT</version>
</parent>
<artifactId>tehanu-core</artifactId>
<packaging>jar</packaging>
<version>2.1.1-SNAPSHOT</version>
<version>2.2.1-SNAPSHOT</version>
<name>Tehanu - telegram bot</name>
<description>
......
......@@ -111,7 +111,9 @@ class UserInput(
callback(fieldGroup)
}
fieldsGroups.add(fieldGroup)
if (!fieldGroup.isEmpty()) {
fieldsGroups.add(fieldGroup)
}
return fieldGroup
}
......
......@@ -140,6 +140,13 @@ class FieldGroup<T>(
}
}
/** Indicates whether there's no field in this group.
* @return true if there is no field, false otherwise.
*/
fun isEmpty(): Boolean {
return fields.isEmpty()
}
private fun resolveValue(
message: Message,
from: User,
......
......@@ -5,12 +5,12 @@
<parent>
<groupId>be.rlab</groupId>
<artifactId>tehanu</artifactId>
<version>2.1.1-SNAPSHOT</version>
<version>2.2.1-SNAPSHOT</version>
</parent>
<artifactId>tehanu-spring</artifactId>
<packaging>jar</packaging>
<version>2.1.1-SNAPSHOT</version>
<version>2.2.1-SNAPSHOT</version>
<name>Tehanu - spring integration</name>
<description>
......