aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-21 18:48:31 +0300
committerGravatar Vitaly Takmazov2018-10-21 18:48:31 +0300
commit2a1e7e46568e285bef994799269ad1785e30fb25 (patch)
treefa91c368913cb81f95fc9b4419e08d07813f0382 /juick-server/src/main/java/com
parentafdba016ef43de75ee9aef715c9a460ab08e90d8 (diff)
Trim PMs
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r--juick-server/src/main/java/com/juick/service/PMQueriesServiceImpl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-server/src/main/java/com/juick/service/PMQueriesServiceImpl.java b/juick-server/src/main/java/com/juick/service/PMQueriesServiceImpl.java
index ab153006..712e4b0e 100644
--- a/juick-server/src/main/java/com/juick/service/PMQueriesServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/PMQueriesServiceImpl.java
@@ -80,7 +80,7 @@ public class PMQueriesServiceImpl extends BaseJdbcService implements PMQueriesSe
u.setUid(rs.getInt(1));
u.setName(rs.getString(2));
u.setLastMessageTimestamp(rs.getTimestamp(3).toInstant());
- u.setLastMessageText(rs.getString(4));
+ u.setLastMessageText(rs.getString(4).trim());
return u;
},
user.getUid(), user.getUid());
@@ -104,7 +104,7 @@ public class PMQueriesServiceImpl extends BaseJdbcService implements PMQueriesSe
user.setUid(uuid);
user.setName(rs.getString(4));
msg.setUser(user);
- msg.setText(rs.getString(2));
+ msg.setText(rs.getString(2).trim());
msg.setTimestamp(rs.getTimestamp(3).toInstant());
return msg;
});
@@ -121,7 +121,7 @@ public class PMQueriesServiceImpl extends BaseJdbcService implements PMQueriesSe
msg.setUser(new User());
msg.getUser().setUid(rs.getInt(1));
msg.getUser().setName(rs.getString(2));
- msg.setText(rs.getString(3));
+ msg.setText(rs.getString(3).trim());
msg.setTimestamp(rs.getTimestamp(4).toInstant());
return msg;
},
@@ -140,7 +140,7 @@ public class PMQueriesServiceImpl extends BaseJdbcService implements PMQueriesSe
msg.setUser(new User());
msg.getUser().setUid(rs.getInt(1));
msg.getUser().setName(rs.getString(2));
- msg.setText(rs.getString(3));
+ msg.setText(rs.getString(3).trim());
msg.setTimestamp(rs.getTimestamp(4).toInstant());
return msg;
},