diff options
author | Vitaly Takmazov | 2022-12-31 01:32:42 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-31 01:32:42 +0300 |
commit | bf5550b515c305c017cf8b3fcf04976d74314233 (patch) | |
tree | 7da644034410ee138dc821a6f0f30194a2cd0859 /src/main/java/com/juick/www/controllers | |
parent | 47bdad85f7ac2b12daf1da4e340be902a568d976 (diff) |
PMQueriesService -> ChatService
Diffstat (limited to 'src/main/java/com/juick/www/controllers')
-rw-r--r-- | src/main/java/com/juick/www/controllers/Site.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java index dadf7ed6..f45fe8f2 100644 --- a/src/main/java/com/juick/www/controllers/Site.java +++ b/src/main/java/com/juick/www/controllers/Site.java @@ -74,7 +74,7 @@ public class Site { @Inject private MessagesService messagesService; @Inject - private PMQueriesService pmQueriesService; + private ChatService chatService; @Inject private WebApp webApp; @Inject @@ -455,7 +455,7 @@ public class Site { protected String doGetInbox(@Visitor User visitor, ModelMap model) { visitor.setAvatar(webApp.getAvatarWebPath(visitor)); String title = "PM: Inbox"; - List<Message> msgs = pmQueriesService.getLastPMInbox(visitor.getUid()); + List<Message> msgs = chatService.getInbox(visitor.getUid()); msgs.forEach(m -> m.getUser().setAvatar(webApp.getAvatarWebPath(m.getUser()))); fillUserModel(model, visitor, visitor); model.addAttribute("title", title); @@ -469,7 +469,7 @@ public class Site { protected String doGetSent(@Visitor User visitor, @RequestParam(required = false) String uname, ModelMap model) { visitor.setAvatar(webApp.getAvatarWebPath(visitor)); String title = "PM: Sent"; - List<Message> msgs = pmQueriesService.getLastPMSent(visitor.getUid()); + List<Message> msgs = chatService.getOutbox(visitor.getUid()); msgs.forEach(m -> m.getUser().setAvatar(webApp.getAvatarWebPath(m.getUser()))); if (WebUtils.isNotUserName(uname)) { uname = StringUtils.EMPTY; |