projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
twitterapi: use order constraint to force descending order
[akkoma]
/
lib
/
pleroma
/
web
/
chat_channel.ex
diff --git
a/lib/pleroma/web/chat_channel.ex
b/lib/pleroma/web/chat_channel.ex
index efdbba5a13f507f80723cadd56f402ed6f4c4ef8..f63f4bda1d1f5b92333bce15b5817530ed2f931a 100644
(file)
--- a/
lib/pleroma/web/chat_channel.ex
+++ b/
lib/pleroma/web/chat_channel.ex
@@
-48,7
+48,7
@@
defmodule Pleroma.Web.ChatChannel.ChatChannelState do
end)
end
- def messages
()
do
+ def messages do
Agent.get(__MODULE__, fn state -> state[:messages] |> Enum.reverse() end)
end
end